Sha256: f1ad2c33a01bfa21fe17054d93df9edc33bc737d0df144373b94ee70f1cb6d4d

Contents?: true

Size: 563 Bytes

Versions: 169

Compression:

Stored size: 563 Bytes

Contents

module RSpec
  module Matchers
    module BuiltIn
      class Eq
        include BaseMatcher

        def matches?(actual)
          super(actual) == expected
        end

        def failure_message_for_should
          "\nexpected: #{expected.inspect}\n     got: #{actual.inspect}\n\n(compared using ==)\n"
        end

        def failure_message_for_should_not
          "\nexpected: value != #{expected.inspect}\n     got: #{actual.inspect}\n\n(compared using ==)\n"
        end

        def diffable?
          true
        end
      end
    end
  end
end

Version data entries

169 entries across 71 versions & 9 rubygems

Version Path
classiccms-0.6.2 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.2 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.2 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.1 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.6.0 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.17 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.16 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.15 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/matchers/built_in/eq.rb
classiccms-0.5.14 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/matchers/built_in/eq.rb