Exception: Pbt::Check::RSpecAdapter::ExpectationNotMet
- Inherits:
-
StandardError
- Object
- StandardError
- Pbt::Check::RSpecAdapter::ExpectationNotMet
- Defined in:
- lib/pbt/check/rspec_adapter/integration.rb
Overview
This custom error contains RSpec matcher and message to handle Pbt’s runner.
Instance Attribute Summary collapse
-
#custom_message ⇒ Object
readonly
Returns the value of attribute custom_message.
-
#failure_message_method ⇒ Object
readonly
Returns the value of attribute failure_message_method.
-
#matcher ⇒ Object
readonly
Returns the value of attribute matcher.
Instance Method Summary collapse
-
#initialize(msg, matcher, custom_message, failure_message_method) ⇒ ExpectationNotMet
constructor
A new instance of ExpectationNotMet.
Constructor Details
#initialize(msg, matcher, custom_message, failure_message_method) ⇒ ExpectationNotMet
Returns a new instance of ExpectationNotMet.
19 20 21 22 23 24 |
# File 'lib/pbt/check/rspec_adapter/integration.rb', line 19 def initialize(msg, matcher, , ) super(msg) @matcher = matcher @custom_message = @failure_message_method = end |
Instance Attribute Details
#custom_message ⇒ Object (readonly)
Returns the value of attribute custom_message.
17 18 19 |
# File 'lib/pbt/check/rspec_adapter/integration.rb', line 17 def @custom_message end |
#failure_message_method ⇒ Object (readonly)
Returns the value of attribute failure_message_method.
17 18 19 |
# File 'lib/pbt/check/rspec_adapter/integration.rb', line 17 def @failure_message_method end |
#matcher ⇒ Object (readonly)
Returns the value of attribute matcher.
17 18 19 |
# File 'lib/pbt/check/rspec_adapter/integration.rb', line 17 def matcher @matcher end |