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