Module: CcApiStub::Frameworks
- Extended by:
- Helper
- Defined in:
- lib/cc_api_stub/frameworks.rb
Class Method Summary
collapse
Methods included from Helper
fail_request, fail_to_load, fail_to_load_many, fail_with_error, find_fixture, fixture_prefix, host, host=, load_fixtures, object_class, object_name, response, response, stub_delete, stub_get, stub_post, stub_put, stub_request, succeed_to_create, succeed_to_delete, succeed_to_load, succeed_to_load_empty, succeed_to_load_many, succeed_to_update
Class Method Details
.fail_to_load ⇒ Object
11
12
13
|
# File 'lib/cc_api_stub/frameworks.rb', line 11
def fail_to_load
stub_get(collection_endpoint, {}, response(500))
end
|
.succeed_to_load ⇒ Object
6
7
8
9
|
# 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
|