Class: RSpec::SSE::Matchers::ExactMatcher

Inherits:
BaseMatcher
  • Object
show all
Defined in:
lib/rspec/sse/matchers.rb

Instance Method Summary collapse

Methods inherited from BaseMatcher

#failure_message, #failure_message_when_negated, #initialize, #match_arrays, #match_items, #matches?

Constructor Details

This class inherits a constructor from RSpec::SSE::Matchers::BaseMatcher

Instance Method Details

#descriptionObject



343
344
345
# File 'lib/rspec/sse/matchers.rb', line 343

def description
  "exactly match #{@expected.inspect}"
end

#match_conditionObject

Match if extracted actual values exactly match expected values



338
339
340
# File 'lib/rspec/sse/matchers.rb', line 338

def match_condition
  match_arrays(extract_actual, @expected)
end