matches?(event_proc) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/matchers/change.rb, line 12
      def matches?(event_proc)
        raise_block_syntax_error if block_given?
        @before = evaluate_value_proc
        @after = evaluate_value_proc
        return (@to = false) if @from unless @from == @before
        return false if @to unless @to == @after
        return (@before + @amount == @after) if @amount
        return ((@after - @before) >= @minimum) if @minimum
        return ((@after - @before) <= @maximum) if @maximum        
        return @before != @after
Register or log in to add new notes.