Module: RSpec::EnrichedJson::NegativeHandlerWrapper

Includes:
HandlerWrapperShared
Defined in:
lib/rspec/enriched_json/expectation_helper_wrapper.rb

Instance Method Summary collapse

Methods included from HandlerWrapperShared

#capture_test_values, #mark_as_passed

Instance Method Details

#handle_matcher(actual, initial_matcher, custom_message = nil, &block) ⇒ Object



202
203
204
205
206
207
# File 'lib/rspec/enriched_json/expectation_helper_wrapper.rb', line 202

def handle_matcher(actual, initial_matcher, custom_message = nil, &block)
  capture_test_values(actual, initial_matcher, negated: true)
  result = super
  mark_as_passed(initial_matcher)
  result
end