Class: RSpec::JsonExpectations::FailurePresenter
- Inherits:
-
Object
- Object
- RSpec::JsonExpectations::FailurePresenter
- Defined in:
- lib/rspec/json_expectations/failure_presenter.rb
Overview
Allows to present failures in a nice way for each json path
Class Method Summary collapse
Class Method Details
.render(errors) ⇒ Object
6 7 8 9 |
# File 'lib/rspec/json_expectations/failure_presenter.rb', line 6 def render(errors) negate = errors[:_negate] errors.map { |path, error| render_error(path, error, negate) }.join end |