diff options
author | Xavier Noria <fxn@hashref.com> | 2013-07-16 14:19:24 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-07-16 17:27:58 +0200 |
commit | 9eb0cd28c95aaf81db1cc2da1943fda82bb4aa8b (patch) | |
tree | d341d7efe7f68b32ff2de6a0d16b1436becc14e8 /activerecord/test/cases/migration | |
parent | 1555a1800ea550a991eb57ce1ec8236bdba0365a (diff) | |
download | rails-9eb0cd28c95aaf81db1cc2da1943fda82bb4aa8b.tar.gz rails-9eb0cd28c95aaf81db1cc2da1943fda82bb4aa8b.tar.bz2 rails-9eb0cd28c95aaf81db1cc2da1943fda82bb4aa8b.zip |
removes the obsolete private method column_methods_hash [Closes #11406]
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/column_attributes_test.rb | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/activerecord/test/cases/migration/column_attributes_test.rb b/activerecord/test/cases/migration/column_attributes_test.rb index 6f5f29f0da..aa606ac8bb 100644 --- a/activerecord/test/cases/migration/column_attributes_test.rb +++ b/activerecord/test/cases/migration/column_attributes_test.rb @@ -16,32 +16,23 @@ module ActiveRecord end def test_add_remove_single_field_using_string_arguments - assert_not TestModel.column_methods_hash.key?(:last_name) + assert_no_column TestModel, :last_name add_column 'test_models', 'last_name', :string - - TestModel.reset_column_information - - assert TestModel.column_methods_hash.key?(:last_name) + assert_column TestModel, :last_name remove_column 'test_models', 'last_name' - - TestModel.reset_column_information - assert_not TestModel.column_methods_hash.key?(:last_name) + assert_no_column TestModel, :last_name end def test_add_remove_single_field_using_symbol_arguments - assert_not TestModel.column_methods_hash.key?(:last_name) + assert_no_column TestModel, :last_name add_column :test_models, :last_name, :string - - TestModel.reset_column_information - assert TestModel.column_methods_hash.key?(:last_name) + assert_column TestModel, :last_name remove_column :test_models, :last_name - - TestModel.reset_column_information - assert_not TestModel.column_methods_hash.key?(:last_name) + assert_no_column TestModel, :last_name end def test_unabstracted_database_dependent_types |