Skip to content

Commit 4b2889e

Browse files
r00kspastorino
authored andcommitted
Correct migration name the test is looking to match.
[rails#6375 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
1 parent 909588d commit 4b2889e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/test/generators/model_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_existing_migration_is_removed_on_force
177177
run_generator
178178
old_migration = Dir["#{destination_root}/db/migrate/*_create_accounts.rb"].first
179179
error = capture(:stderr) { run_generator ["Account", "--force"] }
180-
assert_no_match /Another migration is already named create_foos/, error
180+
assert_no_match /Another migration is already named create_accounts/, error
181181
assert_no_file old_migration
182182
assert_migration 'db/migrate/create_accounts.rb'
183183
end

0 commit comments

Comments
 (0)