Class: InfinumJsonApiSetup::RSpec::Matchers::HaveErrorPointer
- Inherits:
-
JsonBodyMatcher
- Object
- JsonBodyMatcher
- InfinumJsonApiSetup::RSpec::Matchers::HaveErrorPointer
- Defined in:
- lib/infinum_json_api_setup/rspec/matchers/have_error_pointer.rb
Instance Method Summary collapse
-
#initialize(pointer) ⇒ HaveErrorPointer
constructor
A new instance of HaveErrorPointer.
Methods inherited from JsonBodyMatcher
Constructor Details
#initialize(pointer) ⇒ HaveErrorPointer
Returns a new instance of HaveErrorPointer.
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 |