Permalink
Browse files

Fix broken scaffold routes test

  • Loading branch information...
1 parent 2547f36 commit b09e5922e1d26b0867e7113309cc0696561cfd95 @iHiD iHiD committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 b09e592

Please sign in to comment.