diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-24 17:04:32 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-24 17:05:12 +0100 |
commit | 0e8cbbe7d52deaf0e27121e281ebd60118d89bad (patch) | |
tree | a448c78997337230945c67d81b1ffe9e2e202f67 /railties/test/generators | |
parent | 929bfb8bdc32084d21d18736971eae3f7b37a686 (diff) | |
download | rails-0e8cbbe7d52deaf0e27121e281ebd60118d89bad.tar.gz rails-0e8cbbe7d52deaf0e27121e281ebd60118d89bad.tar.bz2 rails-0e8cbbe7d52deaf0e27121e281ebd60118d89bad.zip |
assert_not_match -> assert_no_match.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/migration_generator_test.rb | 4 | ||||
-rw-r--r-- | railties/test/generators/model_generator_test.rb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/railties/test/generators/migration_generator_test.rb b/railties/test/generators/migration_generator_test.rb index 9da1b53c96..d81fc59fbf 100644 --- a/railties/test/generators/migration_generator_test.rb +++ b/railties/test/generators/migration_generator_test.rb @@ -83,8 +83,8 @@ class MigrationGeneratorTest < Rails::Generators::TestCase assert_match(/add_column :books, :content, :text/, up) assert_match(/add_column :books, :user_id, :integer/, up) end - assert_not_match(/add_index :books, :title/, content) - assert_not_match(/add_index :books, :user_id/, content) + assert_no_match(/add_index :books, :title/, content) + assert_no_match(/add_index :books, :user_id/, content) end end diff --git a/railties/test/generators/model_generator_test.rb b/railties/test/generators/model_generator_test.rb index c063d4d687..ffb3d2ceba 100644 --- a/railties/test/generators/model_generator_test.rb +++ b/railties/test/generators/model_generator_test.rb @@ -142,9 +142,9 @@ class ModelGeneratorTest < Rails::Generators::TestCase assert_match(/t\.integer :supplier_id/, up) assert_match(/t\.integer :user_id/, up) - assert_not_match(/add_index :products, :name/, up) - assert_not_match(/add_index :products, :supplier_id/, up) - assert_not_match(/add_index :products, :user_id/, up) + assert_no_match(/add_index :products, :name/, up) + assert_no_match(/add_index :products, :supplier_id/, up) + assert_no_match(/add_index :products, :user_id/, up) end end end @@ -160,7 +160,7 @@ class ModelGeneratorTest < Rails::Generators::TestCase assert_match(/add_index :products, :name/, up) assert_match(/add_index :products, :supplier_id/, up) - assert_not_match(/add_index :products, :year/, up) + assert_no_match(/add_index :products, :year/, up) end end end |