Method: Brine::Selecting::Selector#filter_matcher

Defined in:
lib/brine/selecting.rb

#filter_matcher(matcher) ⇒ RSpec::Matcher

Optionally perform some modification to the RSpec matcher prior to assertion.

This is designed to allow subclassess to be able to modify the way in which matchers are applied against the values. The default implementation is a passthrough.

Parameters:

  • matcher (RSpec::Matcher)

    Relay the matcher originally passed to #assert_that.

Returns:

  • (RSpec::Matcher)

    Return the Matcher to use while performing the assertion.



57
58
59
# File 'lib/brine/selecting.rb', line 57

def filter_matcher(matcher)
  matcher
end