lib/cc_api_stub/spaces.rb in cfoundry-4.3.5.rc1 vs lib/cc_api_stub/spaces.rb in cfoundry-4.3.5
- old
+ new
@@ -21,9 +21,14 @@
response_body = summary_fixture
response_body["services"] = [] if options.delete(:no_services)
stub_get(%r{/v2/spaces/[^/]+/summary$}, {}, response(200, response_body))
end
+ def succeed_to_load_apps(options={})
+ response = response_from_options(options.reverse_merge!({:fixture => "fake_cc_space_apps"}))
+ stub_get(%r{/v2/spaces/[^/]+/apps\?inline-relations-depth=1}, {}, response(200, response))
+ end
+
def space_fixture_hash
{
:metadata => {
:guid => "space-id-1",
:url => "/v2/spaces/space-id-1"