Correct migration name the test is looking to match.
[#6375 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
parent
909588d964
commit
4b2889e771
@ -177,7 +177,7 @@ def test_existing_migration_is_removed_on_force
|
||||
run_generator
|
||||
old_migration = Dir["#{destination_root}/db/migrate/*_create_accounts.rb"].first
|
||||
error = capture(:stderr) { run_generator ["Account", "--force"] }
|
||||
assert_no_match /Another migration is already named create_foos/, error
|
||||
assert_no_match /Another migration is already named create_accounts/, error
|
||||
assert_no_file old_migration
|
||||
assert_migration 'db/migrate/create_accounts.rb'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user