# File lib/mspec/matchers/be_computed_by.rb, line 28 def failure_message ["Expected #{@value.inspect}", "to be computed by #{method_call} (computed #{@actual.inspect} instead)"] end
# File lib/mspec/matchers/be_computed_by.rb, line 7 def matches?(array) array.each do |line| @receiver = line.shift @value = line.pop @arguments = line @arguments += @args @actual = @receiver.send(@method, *@arguments) return false unless @actual == @value end return true end
Generated with the Darkfish Rdoc Generator 2.