module CcApiStub::Frameworks

Public Class Methods

fail_to_load() click to toggle source
# File lib/cc_api_stub/frameworks.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/frameworks.rb, line 6
def succeed_to_load
  response_body = Helper.load_fixtures("fake_cc_frameworks")
  stub_get(collection_endpoint, {}, response(200, response_body))
end

Private Class Methods

collection_endpoint() click to toggle source
# File lib/cc_api_stub/frameworks.rb, line 17
def collection_endpoint
  %r{/v2/frameworks\?inline-relations-depth=1$}
end