spec/angelo/mustermann_spec.rb in angelo-0.0.9 vs spec/angelo/mustermann_spec.rb in angelo-0.1.0
- old
+ new
@@ -47,9 +47,15 @@
__send__ m, path, {foo: 'other', bar: 'are_bad'}.to_json, headers
last_response_should_be_json mm_pattern.params(path)
end
end
+ it '404s correctly for not found routes' do
+ path = '/bad/monkey'
+ get path
+ last_response.status.should eq 404
+ end
+
end
describe 'tilt/erb integration' do
define_app do