Class: Adapter::ActiveModel
- Inherits:
-
Object
- Object
- Adapter::ActiveModel
- Includes:
- RSpec::Matchers
- Defined in:
- lib/rspec/api_helpers/adapter/active_model/adapter.rb
Defined Under Namespace
Modules: CommonHelpers Classes: Collection, Resource
Class Method Summary collapse
Class Method Details
.collection(options, response, _binding) ⇒ Object
12 13 14 15 16 |
# File 'lib/rspec/api_helpers/adapter/active_model/adapter.rb', line 12 def collection(, response, _binding) hashed_response = HashWithIndifferentAccess.new(JSON.parse(response.body)) return Collection.new(, hashed_response, _binding) end |