fixing tests on ruby 1.8

This commit is contained in:
Aaron Patterson 2011-11-20 15:09:03 -08:00
parent 26c542ba2c
commit 008abd17dc
1 changed files with 3 additions and 1 deletions

View File

@ -159,7 +159,9 @@ module ActiveRecord
assert_equal str, binary.data
ensure
DualEncoding.connection.drop_table('dual_encodings')
if "<3".respond_to?(:encode)
DualEncoding.connection.drop_table('dual_encodings')
end
end
def test_execute