Method: RSpec::Mocks::ArgumentMatchers#hash_including
- Defined in:
- lib/rspec/mocks/argument_matchers.rb
#hash_including(*args) ⇒ Object
Matches a hash that includes the specified key(s) or key/value pairs. Ignores any additional keys.
70 71 72 |
# File 'lib/rspec/mocks/argument_matchers.rb', line 70 def hash_including(*args) HashIncludingMatcher.new(ArgumentMatchers.anythingize_lonely_keys(*args)) end |