Class: InfinumJsonApiSetup::RSpec::Matchers::IncludeRelatedResource

Inherits:
JsonBodyMatcher
  • Object
show all
Defined in:
lib/infinum_json_api_setup/rspec/matchers/include_related_resource.rb

Instance Method Summary collapse

Methods inherited from JsonBodyMatcher

#failure_message, #matches?

Constructor Details

#initialize(type, id) ⇒ IncludeRelatedResource

Returns a new instance of IncludeRelatedResource.

Parameters:

  • type (String)
  • id (Integer)


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