class RoadForest::Testing::Produces

Attributes

expected[R]
info[R]

Public Class Methods

new(expected, info) click to toggle source
# File lib/roadforest/test-support/matchers.rb, line 167
def initialize(expected, info)
  @expected, @info = expected, info
end

Public Instance Methods

failure_message_for_should(actual) click to toggle source
# File lib/roadforest/test-support/matchers.rb, line 176
def failure_message_for_should(actual)
  "Expected: #{expected.inspect}\n" +
  "Actual  : #{actual.inspect}\n" +
  "Processing results:\n#{info.join("\n")}"
end
matches?(actual) click to toggle source
# File lib/roadforest/test-support/matchers.rb, line 172
def matches?(actual)
  actual == expected
end