From 6e7ba44f831e3c7c160f94dafaf854e2ea49bda8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 12 Jan 2012 15:43:41 -0800 Subject: test code that finds migrations --- activerecord/test/cases/migration/rename_column_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/cases/migration') diff --git a/activerecord/test/cases/migration/rename_column_test.rb b/activerecord/test/cases/migration/rename_column_test.rb index a9157797e4..2e7e533ed6 100644 --- a/activerecord/test/cases/migration/rename_column_test.rb +++ b/activerecord/test/cases/migration/rename_column_test.rb @@ -186,6 +186,10 @@ module ActiveRecord connection.change_column_default "test_models", "first_name", nil assert_nil TestModel.new.first_name end + + def test_remove_column_no_second_parameter_raises_exception + assert_raise(ArgumentError) { connection.remove_column("funny") } + end end end end -- cgit v1.2.3