Sha256: 894e98183b8893f24604de052c6aff2f6249d0677a95b2ca75210edbc198cece
Contents?: true
Size: 726 Bytes
Versions: 15
Compression:
Stored size: 726 Bytes
Contents
# frozen_string_literal: true require "katalyst/kpop/matchers/base" module Katalyst module Kpop module Matchers # @api private class ResponseMatcher < Base def match(_, actual) case actual when ::ActionDispatch::Response ::ActionDispatch::TestResponse.from_response(actual) when ::ActionDispatch::TestResponse actual end end def description "a response" end def failure_message "expected a response but received #{actual.inspect} instead" end def failure_message_when_negated "expected not to receive a response" end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems