Revert "v3: add active and private filter to owner query"

This reverts commit 2b12aadc0d.
This commit is contained in:
Konstantin Haase 2015-05-04 18:34:15 +02:00
parent 2b12aadc0d
commit cc82721565
2 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,5 @@
module Travis::API::V3
class Services::Owner::Find < Service
params :active, :private, prefix: :repository
def result_type
@result_type ||= super
end

View File

@ -97,9 +97,9 @@ describe Travis::API::V3::ServiceIndex do
describe "find action" do
let(:action) { resource.fetch("actions").fetch("find") }
specify { expect(action).to include("@type"=>"template", "request_method"=>"GET", "uri_template"=>"#{path}owner/{owner.login}{?active,include,private,repository.active,repository.private}") }
specify { expect(action).to include("@type"=>"template", "request_method"=>"GET", "uri_template"=>"#{path}owner/{user.login}{?active,include,private,repository.active,repository.private}") }
specify { expect(action).to include("@type"=>"template", "request_method"=>"GET", "uri_template"=>"#{path}owner/{organization.login}{?active,include,private,repository.active,repository.private}") }
specify { expect(action).to include("@type"=>"template", "request_method"=>"GET", "uri_template"=>"#{path}owner/{owner.login}{?include}") }
specify { expect(action).to include("@type"=>"template", "request_method"=>"GET", "uri_template"=>"#{path}owner/{user.login}{?include}") }
specify { expect(action).to include("@type"=>"template", "request_method"=>"GET", "uri_template"=>"#{path}owner/{organization.login}{?include}") }
end
end