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,8 +159,10 @@ module ActiveRecord
assert_equal str, binary.data
ensure
if "<3".respond_to?(:encode)
DualEncoding.connection.drop_table('dual_encodings')
end
end
def test_execute
@conn.execute "INSERT INTO items (number) VALUES (10)"