Skip to content

Commit

Permalink
fix test because of changes in sinatra/sinatra#1566
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Hu committed May 11, 2020
1 parent 6214ef6 commit 7c55a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion padrino-core/test/test_routing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2120,9 +2120,11 @@ def authorize(username, password)

it 'should render sinatra NotFound page' do
mock_app { set :environment, :development }

get "/"
assert_equal 404, status
assert_match %r{(Sinatra doesn&rsquo;t know this ditty.|<h1>Not Found</h1>)}, body

assert_match %r{GET /}, body
end

it 'should render a custom NotFound page' do
Expand Down

0 comments on commit 7c55a92

Please sign in to comment.