lib/rimless/rspec/matchers.rb
def check
          @matching, @unmatching = @messages.partition do |message|
            schema_match?(message) && arguments_match?(message) &&
              data_match?(message)
          end

          @matching_count = @matching.size

          case @expectation_type
          when :exactly then @expected_number == @matching_count
          when :at_most then @expected_number >= @matching_count
          when :at_least then @expected_number <= @matching_count
          end
        end
# Perform the result set checking of recorded message which were sent.
#
# @return [Boolean] the answer
Perform the result set checking of recorded message which were sent.
Perform the result set checking of recorded message which were sent .
def check
          @matching, @unmatching = @messages.partition do |message|
            schema_match?(message) && arguments_match?(message) &&
              data_match?(message)
          end
          @matching_count = @matching.size
          case @expectation_type
          when :exactly then @expected_number == @matching_count
          when :at_most then @expected_number >= @matching_count
          when :at_least then @expected_number <= @matching_count
          end
        end
def check @matching , @unmatching = @messages . partition do | message | schema_match? ( message ) && arguments_match? ( message ) && data_match? ( message ) end @matching_count = @matching . size case @expectation_type when :exactly then @expected_number == @matching_count when :at_most then @expected_number >= @matching_count when :at_least then @expected_number <= @matching_count end end
Perform the result set checking of recorded message which were sent.
Perform the result set checking of recorded message which were sent .
None
Boolean