class HttpStub::Server::Stub::Match::HashMatcher
Public Class Methods
match?(stub_hash, actual_hash)
click to toggle source
# File lib/http_stub/server/stub/match/hash_matcher.rb, line 8 def self.match?(stub_hash, actual_hash) !stub_hash.find do |(key, value)| !HttpStub::Server::Stub::Match::StringValueMatcher.match?(value, actual_hash[key]) end end