mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
committed by
Santiago Pastorino
parent
909588d964
commit
4b2889e771
@@ -177,7 +177,7 @@ class ModelGeneratorTest < Rails::Generators::TestCase
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user