aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-24 17:04:32 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-24 17:05:45 +0100
commit7a2a661b834ec744d3bfb166f1afd546312b739e (patch)
tree0c597d463d14a4280b38552c046c921d334fedbb /railties
parentbf72297d35c4ab169b2e4da9973ab5b5e3410981 (diff)
downloadrails-7a2a661b834ec744d3bfb166f1afd546312b739e.tar.gz
rails-7a2a661b834ec744d3bfb166f1afd546312b739e.tar.bz2
rails-7a2a661b834ec744d3bfb166f1afd546312b739e.zip
assert_not_match -> assert_no_match.
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/migration_generator_test.rb4
-rw-r--r--railties/test/generators/model_generator_test.rb8
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