lib/cc_api_stub/spaces.rb in cfoundry-4.3.11 vs lib/cc_api_stub/spaces.rb in cfoundry-4.3.12

- old
+ new

@@ -26,9 +26,13 @@ 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 fail_to_find(space_id) + stub_get(%r{/v2/spaces/#{space_id}}, {}, response(404, {:code => 40004, :description => "The app space could not be found:"})) + end + def space_fixture_hash { :metadata => { :guid => "space-id-1", :url => "/v2/spaces/space-id-1"