returns 404 for not found pages
(instead of 500 by MissingTemplate) Fixes #792
This commit is contained in:
@@ -58,4 +58,10 @@ describe PagesController do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Not found pages' do
|
||||
it 'should return a 404 message' do
|
||||
expect { get :show, id: "nonExistentPage" }.to raise_error(ActionController::RoutingError)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user