Permalink
Browse files

[core] Fix routing test to use not_found callback

  • Loading branch information...
nesquena committed Mar 11, 2013
1 parent ba2cfcd commit 15927ecb172f99fca56d243d331729b9194daa91
Showing with 3 additions and 3 deletions.
  1. +3 −3 padrino-core/test/test_routing.rb
@@ -1414,12 +1414,12 @@ def authorize(username, password)
get(:url5) { "okay" }
end
end
url = @app.url(:ugly, :url3, :id => 1)
assert_equal "/pretty/1/url3", url
get url
assert_equal "1", body
url = @app.url(:ugly, :url4, 3, 5)
assert_equal "/pretty/3/test-5", url
get url
@@ -1711,7 +1711,7 @@ def authorize(username, password)
should 'render a custom 404 page' do
mock_app do
error(404) { "custom 404 not found" }
not_found { "custom 404 not found" }
end
get "/"
assert_equal 404, status

0 comments on commit 15927ec

Please sign in to comment.