diff --git a/spec/grape/api_spec.rb b/spec/grape/api_spec.rb index 8033f1d931..d0515d3d23 100644 --- a/spec/grape/api_spec.rb +++ b/spec/grape/api_spec.rb @@ -2857,6 +2857,12 @@ def before get '/v2/hello' expect(last_response.status).to eq(200) expect(last_response.body).to eq('v2') + options '/v2/hello' + expect(last_response.status).to eq(200) + expect(last_response.body).to be_blank + head '/v2/hello' + expect(last_response.status).to eq(200) + expect(last_response.body).to be_blank get '/foobar' expect(last_response.status).to eq(404) expect(last_response.body).to eq('Unrecognized request path: foobar - /foobar')