Sha256: 943014d3a12c25c43642bebdfbdb02a97bcd730a4db1a81a011265a26f25c6da

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require 'object_comparator'

RSpec::Matchers.define :be_equal_to do |expected|
  match do |actual|
    ObjectComparator.new.equal?(actual, expected)
  end

  failure_message_for_should do |actual|
    ObjectComparator.new.failing_message_for_should(expected, actual)
  end

  failure_message_for_should_not do |actual|
    ObjectComparator.new.failing_message_for_should_not(expected, actual)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
object_comparator-0.1.2 lib/object_comparator/rspec.rb