method
==
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::HashIncludingConstraint
- 1.1.4 (0)
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
==(actual)
public
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