lib/cc_api_stub/domains.rb in cfoundry-0.6.0.rc2 vs lib/cc_api_stub/domains.rb in cfoundry-0.6.0.rc3
- old
+ new
@@ -14,8 +14,13 @@
def succeed_to_load_spaces
response_body = Helper.load_fixtures("fake_cc_domain_spaces")
stub_get(%r{/v2/domains/[^/]+/spaces.*$}, {}, response(200, response_body))
end
+
+ def succeed_to_add_space
+ response_body = Helper.load_fixtures("fake_cc_created_domain")
+ stub_put(%r{/v2/domains/[^/]+/spaces/[^/]+$}, {}, response(201, response_body))
+ end
end
end
end