diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-20 15:09:03 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-20 15:09:03 -0800 |
commit | 008abd17dcf7a5809650b7a65ad9206d13c95c82 (patch) | |
tree | c3b948d5a698da51c177fa963865370b5be5cf0f /activerecord | |
parent | 26c542ba2c498f9f9b5253afbcf13a67f44878c1 (diff) | |
download | rails-008abd17dcf7a5809650b7a65ad9206d13c95c82.tar.gz rails-008abd17dcf7a5809650b7a65ad9206d13c95c82.tar.bz2 rails-008abd17dcf7a5809650b7a65ad9206d13c95c82.zip |
fixing tests on ruby 1.8
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb index 156a8b7b14..97b56d38d7 100644 --- a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb +++ b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb @@ -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 |