Exception: Response::Matchers::MissingPathError
- Inherits:
-
StandardError
- Object
- StandardError
- Response::Matchers::MissingPathError
- Defined in:
- lib/reusable/rspec/support/matchers/exceptions.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ MissingPathError
constructor
A new instance of MissingPathError.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ MissingPathError
Returns a new instance of MissingPathError.
6 7 8 |
# File 'lib/reusable/rspec/support/matchers/exceptions.rb', line 6 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/reusable/rspec/support/matchers/exceptions.rb', line 4 def path @path end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/reusable/rspec/support/matchers/exceptions.rb', line 10 def to_s %(Missing JSON path "#{path}") end |