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(={}) response = summary_fixture response["state"] = [:state] if .has_key?(:state) response["routes"] = [:routes] if .has_key?(:routes) stub_get(%r{/v2/apps/[^/]+/summary$}, {}, response(200, response)) end |