Module: CcApiStub::Services
- Extended by:
- Helper
- Defined in:
- lib/cc_api_stub/services.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
.service_fixture_hash ⇒ Object
10
11
12
|
# File 'lib/cc_api_stub/services.rb', line 10
def service_fixture_hash
MultiJson.load(services_fixture["resources"].first.to_json, :symbolize_keys => true)
end
|
.succeed_to_load ⇒ Object
6
7
8
|
# File 'lib/cc_api_stub/services.rb', line 6
def succeed_to_load
stub_get(collection_endpoint, {}, response(200, services_fixture))
end
|