Permalink
Browse files

assert_not_match -> assert_no_match.

  • Loading branch information...
1 parent bf72297 commit 7a2a661b834ec744d3bfb166f1afd546312b739e @josevalim josevalim committed Dec 24, 2011
@@ -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
@@ -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 7a2a661

Please sign in to comment.