Class: HttpStub::Server::Stub::Match::ExactValueMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/server/stub/match/exact_value_matcher.rb

Class Method Summary collapse

Class Method Details

.match?(stub_value, actual_value) ⇒ Boolean

Returns:

  • (Boolean)

8
9
10
11
# File 'lib/http_stub/server/stub/match/exact_value_matcher.rb', line 8

def self.match?(stub_value, actual_value)
  stub_match_value = stub_value && !stub_value.is_a?(Symbol) ? stub_value.to_s : stub_value
  stub_match_value == actual_value
end