Method: CcApiStub::Applications.succeed_to_load_summary

Defined in:
lib/cc_api_stub/applications.rb

.succeed_to_load_summary(options = {}) ⇒ Object



34
35
36
37
38
39
# File 'lib/cc_api_stub/applications.rb', line 34

def succeed_to_load_summary(options={})
  response = summary_fixture
  response["state"] = options[:state] if options.has_key?(:state)
  response["routes"] = options[:routes] if options.has_key?(:routes)
  stub_get(%r{/v2/apps/[^/]+/summary$}, {}, response(200, response))
end