diff options
author | Jamis Buck <jamis@37signals.com> | 2007-01-13 19:18:03 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2007-01-13 19:18:03 +0000 |
commit | 6782a6f435749f1cc9cb87bd1a397326675fd0c9 (patch) | |
tree | fd0073ea25d85088e91e46619ebc5386b35741bd /test | |
parent | d3b5357d5ff1a2f1d6e4a212e768412da4fde2d2 (diff) | |
download | third_party-sqlite3-ruby-6782a6f435749f1cc9cb87bd1a397326675fd0c9.tar.gz third_party-sqlite3-ruby-6782a6f435749f1cc9cb87bd1a397326675fd0c9.tar.xz third_party-sqlite3-ruby-6782a6f435749f1cc9cb87bd1a397326675fd0c9.zip |
Add a test case to make sure table_info works with type-translation active.
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_integration.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/tc_integration.rb b/test/tc_integration.rb index 70458b9..4c1c5d8 100644 --- a/test/tc_integration.rb +++ b/test/tc_integration.rb @@ -77,6 +77,11 @@ module Integration File.delete( "test.db" ) end + define_method( "test_table_info_with_type_translation_active" ) do + @db.type_translation = true + assert_nothing_raised { @db.table_info("foo") } + end + define_method( "test_complete_fail" ) do assert !@db.complete?( "select * from foo" ) end @@ -715,7 +720,7 @@ module Integration end define_method( "test_bind_params_hash_as_symbol" ) do - @stmt.bind_params :named => 2 + @stmt.bind_params named => 2 assert_equal 1, @stmt.execute!.length end |