method

==

Importance_0
1.1.4 - Show latest stable - 0 notes - Class: Spec::Mocks::HashIncludingConstraint
==(actual) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/mocks/argument_expectation.rb, line 117
      def ==(actual)
        @expected.each do | key, value |
          # check key for case that value evaluates to nil
          return false unless actual.has_key?(key) && actual[key] == value
        end
        true
      rescue NoMethodError => ex
        return false
      end
Register or log in to add new notes.