Sha256: 4d3000cedecd9fde0e31f52d50ea691b0f3a0055002488ed57aab27531891d8c
Contents?: true
Size: 633 Bytes
Versions: 7
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 1 rubygems