module CcApiStub::Runtimes
Public Class Methods
fail_to_load()
click to toggle source
# File lib/cc_api_stub/runtimes.rb, line 11 def fail_to_load stub_get(collection_endpoint, {}, response(500)) end
succeed_to_load()
click to toggle source
# File lib/cc_api_stub/runtimes.rb, line 6 def succeed_to_load response_body = Helper.load_fixtures("fake_cc_runtimes") stub_get(collection_endpoint, {}, response(200, response_body)) end
Private Class Methods
collection_endpoint()
click to toggle source
# File lib/cc_api_stub/runtimes.rb, line 17 def collection_endpoint %r{/v2/runtimes\?inline-relations-depth=1$} end