From 6782a6f435749f1cc9cb87bd1a397326675fd0c9 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sat, 13 Jan 2007 19:18:03 +0000 Subject: Add a test case to make sure table_info works with type-translation active. --- test/tc_integration.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit