Sha256: 7fbcf766f7b473c5eb31c91eebcc2d78a5cf65900ddfb5c954d9bed1edc49f52

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

require 'object_comparator'

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
object_comparator-0.1.4 lib/object_comparator/rspec.rb
object_comparator-0.1.3 lib/object_comparator/rspec.rb