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

Version Path
katalyst-kpop-3.1.3 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.1.2 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.1.1 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.1.0 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.2 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.1 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.8 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.7 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.6 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.5 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.4 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.3 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.2 lib/katalyst/kpop/matchers/title_matcher.rb
katalyst-kpop-3.0.0.beta.1 lib/katalyst/kpop/matchers/title_matcher.rb