diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-28 20:49:41 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-31 13:58:52 -0300 |
commit | 5294ad82c6096edba06f4111325d6b0e6845d9f0 (patch) | |
tree | cec386a00a691b26906ce4e335f49da26ecf6938 /activerecord/test/cases/migration_test.rb | |
parent | 6c0013f7cda487de101d47376b9f1355ff1ef095 (diff) | |
download | rails-5294ad82c6096edba06f4111325d6b0e6845d9f0.tar.gz rails-5294ad82c6096edba06f4111325d6b0e6845d9f0.tar.bz2 rails-5294ad82c6096edba06f4111325d6b0e6845d9f0.zip |
Alias refute methods to assert_not and perfer assert_not on tests
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index c155f29973..9cb64a6a71 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -232,7 +232,7 @@ class MigrationTest < ActiveRecord::TestCase skip "not supported on #{ActiveRecord::Base.connection.class}" end - refute Person.column_methods_hash.include?(:last_name) + assert_not Person.column_methods_hash.include?(:last_name) migration = Struct.new(:name, :version) { def migrate(x); raise 'Something broke'; end @@ -245,7 +245,7 @@ class MigrationTest < ActiveRecord::TestCase assert_equal "An error has occurred, this and all later migrations canceled:\n\nSomething broke", e.message Person.reset_column_information - refute Person.column_methods_hash.include?(:last_name) + assert_not Person.column_methods_hash.include?(:last_name) end def test_schema_migrations_table_name |