Class: InfinumJsonApiSetup::RSpec::Matchers::IncludeRelatedResource
- Inherits:
-
JsonBodyMatcher
- Object
- JsonBodyMatcher
- InfinumJsonApiSetup::RSpec::Matchers::IncludeRelatedResource
- Defined in:
- lib/infinum_json_api_setup/rspec/matchers/include_related_resource.rb
Instance Method Summary collapse
-
#initialize(type, id) ⇒ IncludeRelatedResource
constructor
A new instance of IncludeRelatedResource.
Methods inherited from JsonBodyMatcher
Constructor Details
#initialize(type, id) ⇒ IncludeRelatedResource
Returns a new instance of IncludeRelatedResource.
14 15 16 17 18 19 |
# File 'lib/infinum_json_api_setup/rspec/matchers/include_related_resource.rb', line 14 def initialize(type, id) super(Matchers::Util::BodyParser.new('included')) @type = type @id = id end |