method
matches?
matches?(event_proc)
public
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 event_proc.call @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 end