Sha256: 62b89eed4af3ba6496b37f20c8bd53b189b6c51e6f61c6ea14761b3d686d76ec
Contents?: true
Size: 672 Bytes
Versions: 15
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true require "katalyst/kpop/matchers/base" module Katalyst module Kpop module Matchers # @api private class TitleMatcher < Base def description "contain a kpop modal with title #{expected.inspect}" end def match(expected, actual) expected.match?(actual.text) end def failure_message "expected a kpop modal with title #{expected.inspect} but received #{actual.native.to_html.inspect} instead" end def failure_message_when_negated "expected not to find a kpop modal with title #{expected}" end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems