diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-12 15:43:41 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-13 14:33:57 -0800 |
commit | 6e7ba44f831e3c7c160f94dafaf854e2ea49bda8 (patch) | |
tree | 769939aa19a0bcdcecbf939e83854c7714d8cb05 /activerecord/test/cases/migration | |
parent | dea59f01500bc540314087c726043aca768905c6 (diff) | |
download | rails-6e7ba44f831e3c7c160f94dafaf854e2ea49bda8.tar.gz rails-6e7ba44f831e3c7c160f94dafaf854e2ea49bda8.tar.bz2 rails-6e7ba44f831e3c7c160f94dafaf854e2ea49bda8.zip |
test code that finds migrations
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/rename_column_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |