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
