aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorBen Orenstein <ben.orenstein@gmail.com>2011-02-04 12:42:34 -0500
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-04 20:25:13 -0200
commit4b2889e771ca7ca1ec6477ab37494db50d366b76 (patch)
tree1b9ab7637599dcc9d607b64f1a6b83530330d8dd /railties/test/generators
parent909588d964bf27f20142a0b4d57890114a8d4a7a (diff)
downloadrails-4b2889e771ca7ca1ec6477ab37494db50d366b76.tar.gz
rails-4b2889e771ca7ca1ec6477ab37494db50d366b76.tar.bz2
rails-4b2889e771ca7ca1ec6477ab37494db50d366b76.zip
Correct migration name the test is looking to match.
[#6375 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/model_generator_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/model_generator_test.rb b/railties/test/generators/model_generator_test.rb
index 6b2fd8b9ee..3d773b4134 100644
--- a/railties/test/generators/model_generator_test.rb
+++ b/railties/test/generators/model_generator_test.rb
@@ -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