mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
assert_not_match -> assert_no_match.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user