Class: WebMock::Matchers::HashArgumentMatcher
- Inherits:
-
Object
- Object
- WebMock::Matchers::HashArgumentMatcher
show all
- Defined in:
- lib/webmock/matchers/hash_argument_matcher.rb
Overview
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.from_rspec_matcher(matcher) ⇒ Object
16
17
18
|
# File 'lib/webmock/matchers/hash_argument_matcher.rb', line 16
def self.from_rspec_matcher(matcher)
new(matcher.instance_variable_get(:@expected))
end
|
Instance Method Details
#==(_actual, &block) ⇒ Object
10
11
12
13
14
|
# File 'lib/webmock/matchers/hash_argument_matcher.rb', line 10
def ==(_actual, &block)
@expected.all?(&block)
rescue NoMethodError
false
end
|