Class: InfinumJsonApiSetup::RSpec::Matchers::IncludeErrorDetail

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

Instance Method Summary collapse

Methods inherited from JsonBodyMatcher

#failure_message, #matches?

Constructor Details

#initialize(error_detail) ⇒ IncludeErrorDetail

Returns a new instance of IncludeErrorDetail.

Parameters:

  • error_detail (String)


12
13
14
15
16
# File 'lib/infinum_json_api_setup/rspec/matchers/include_error_detail.rb', line 12

def initialize(error_detail)
  super(Matchers::Util::BodyParser.new('errors'))

  @error_detail = error_detail
end