Skip to content
Browse files

assert_not_match -> assert_no_match.

  • Loading branch information...
1 parent 929bfb8 commit 0e8cbbe7d52deaf0e27121e281ebd60118d89bad @josevalim josevalim committed Dec 24, 2011
View
4 railties/test/generators/migration_generator_test.rb
@@ -83,8 +83,8 @@ def test_add_migration_with_attributes_and_wrong_index_declaration
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
View
8 railties/test/generators/model_generator_test.rb
@@ -142,9 +142,9 @@ def test_migration_with_attributes_and_with_wrong_index_declaration
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 @@ def test_migration_with_missing_attribute_type_and_with_index
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

0 comments on commit 0e8cbbe

Please sign in to comment.
Something went wrong with that request. Please try again.