Skip to content

Commit

Permalink
Fix broken scaffold routes test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Walker committed Oct 1, 2012
1 parent 2547f36 commit b09e592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/test/generators/scaffold_generator_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit b09e592

Please sign in to comment.