diff options
-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 |