Permalink
Browse files

Merge pull request #7811 from iHiD/resource_generator_routes_master

Fix the build (Broken scaffold routes test)
  • Loading branch information...
2 parents 2547f36 + b09e592 commit 34239cc511ac8de9a23e84fd6835a2f2440d2863 @spastorino spastorino committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/generators/scaffold_generator_test.rb
View
2 railties/test/generators/scaffold_generator_test.rb
@@ -142,7 +142,7 @@ def test_scaffold_with_namespace_on_invoke
# Route
assert_file "config/routes.rb" do |route|
- assert_match(/namespace :admin do resources :roles end$/, route)
+ assert_match(/^ namespace :admin do\n resources :roles\n end$/, route)
end
# Controller

0 comments on commit 34239cc

Please sign in to comment.