Exception: Pbt::Check::RSpecAdapter::ExpectationNotMet

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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, custom_message, failure_message_method)
  super(msg)
  @matcher = matcher
  @custom_message = custom_message
  @failure_message_method = failure_message_method
end

Instance Attribute Details

#custom_messageObject (readonly)

Returns the value of attribute custom_message.



17
18
19
# File 'lib/pbt/check/rspec_adapter/integration.rb', line 17

def custom_message
  @custom_message
end

#failure_message_methodObject (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
  @failure_message_method
end

#matcherObject (readonly)

Returns the value of attribute matcher.



17
18
19
# File 'lib/pbt/check/rspec_adapter/integration.rb', line 17

def matcher
  @matcher
end