16 lines
378 B
Ruby
16 lines
378 B
Ruby
require 'spec_helper'
|
|
|
|
describe Travis::API::V3::ServiceIndex 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
|