class HttpStub::Server::Stub::Match::ExactValueMatcher

Public Class Methods

match?(stub_value, actual_value) click to toggle source
# 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