Sha256: 78795ad4ff78f1d61fcc9748b7b4cec0ea155d4d436bbe67876f26addce83d3a
Contents?: true
Size: 666 Bytes
Versions: 14
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true require "katalyst/kpop/matchers/base" module Katalyst module Kpop module Matchers # @api private class RedirectMatcher < Base def match(expected, actual) actual["href"].to_s.match?(expected) end def description "kpop redirect to #{expected.inspect}" end def failure_message "expected a kpop redirect to #{expected.inspect} but received #{actual.native.to_html.inspect} instead" end def failure_message_when_negated "expected not to find a kpop redirect to #{expected.inspect}" end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems