spec/server/rack/http_resource_spec.rb in volt-0.9.2 vs spec/server/rack/http_resource_spec.rb in volt-0.9.3.pre1

- old
+ new

@@ -53,7 +53,17 @@ response = http_resource.call(env) expect(response.status).to eq(200) expect(response.body).to eq(['show with id 99 and another_param called']) end + + it 'should call the supplied app if routes are not matched and cause a 404' do + http_resource = Volt::HttpResource.new(app, @routes) + env = Rack::MockRequest.env_for('http://example.com/not_a_valid_param') + request = Volt::HttpRequest.new(env) + response = http_resource.call(env) + expect(response[0]).to eq(404) + #expect(response.body).to eq(['show with id 99 and another_param called']) + end + end end