travis-api/spec/v3/error_handling_spec.rb
2016-06-19 14:35:54 +02:00

14 lines
370 B
Ruby

describe Travis::API::V3::ServiceIndex, set_app: true do
let(:headers) {{ }}
let(:path) { "/v3/repo/1/enable" }
let(:json) { JSON.load(response.body) }
let(:response) { get(path, {}, headers) }
let(:resources) { json.fetch('resources') }
it "handles wrong HTTP method with 405 status" do
response.status.should == 405
end
end