Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

assert_not_match -> assert_no_match.

  • Loading branch information...
commit 7a2a661b834ec744d3bfb166f1afd546312b739e 1 parent bf72297
José Valim josevalim authored
4 railties/test/generators/migration_generator_test.rb
View
@@ -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
8 railties/test/generators/model_generator_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.