diff --git a/lib/travis/api/v3/services/owner/find.rb b/lib/travis/api/v3/services/owner/find.rb index 6751396d..09afc07c 100644 --- a/lib/travis/api/v3/services/owner/find.rb +++ b/lib/travis/api/v3/services/owner/find.rb @@ -1,5 +1,7 @@ module Travis::API::V3 class Services::Owner::Find < Service + params :active, :private, prefix: :repository + def result_type @result_type ||= super end diff --git a/spec/v3/service_index_spec.rb b/spec/v3/service_index_spec.rb index bf49e614..c932d616 100644 --- a/spec/v3/service_index_spec.rb +++ b/spec/v3/service_index_spec.rb @@ -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}{?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}") } + 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}") } end end