lib/cc_api_stub/organizations.rb in cfoundry-4.3.2.rc1 vs lib/cc_api_stub/organizations.rb in cfoundry-4.3.3
- old
+ new
@@ -56,11 +56,11 @@
stub_get(%r{/v2/organizations/[^\/]+/users\?inline-relations-depth=1}, {}, response(200, users_fixture))
end
private
- def object_endpoint
- %r{/v2/organizations/[^/]+$}
+ def object_endpoint(id = nil)
+ %r{/v2/organizations/#{id}[^/]+$}
end
def collection_endpoint
%r{/v2/organizations\/?(\?.+)?$}
end