lib/rimless/rspec/matchers.rb
# The actual RSpec API check for the expectation.
#
# @param proc [Proc] the block to evaluate
# @return [Boolean] whenever the check was successful or not
The actual RSpec API check for the expectation.
The actual RSpec API check for the expectation .
def matches?(proc)
          unless proc.is_a? Proc
            raise ArgumentError, 'have_sent_kafka_message and ' \
                                 'sent_kafka_message only support block ' \
                                 'expectations'
          end
          listen_to_messages
          proc.call
          check
        end
def matches? ( proc ) unless proc . is_a? Proc raise ArgumentError , 'have_sent_kafka_message and ' 'sent_kafka_message only support block ' 'expectations' end listen_to_messages proc . call check end
The actual RSpec API check for the expectation.
The actual RSpec API check for the expectation .
whenever the check was successful or not
whenever the check was successful or not
Boolean
proc
the block to evaluate
the block to evaluate