Class: InfinumJsonApiSetup::RSpec::Matchers::HaveErrorPointer

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

Instance Method Summary collapse

Methods inherited from JsonBodyMatcher

#failure_message, #matches?

Constructor Details

#initialize(pointer) ⇒ HaveErrorPointer

Returns a new instance of HaveErrorPointer.

Parameters:

  • pointer (String)


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

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

  @pointer = pointer
end