Sha256: 16a5d9c6403247294db563c154817f25410b4ecdfd4b03a13d1fbbab59aa6bf3
Contents?: true
Size: 542 Bytes
Versions: 44
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true require 'capybara/rspec/matchers/base' module Capybara module RSpecMatchers module Matchers class HaveTitle < WrappedElementMatcher def element_matches?(el) el.assert_title(*@args, **@kw_args) end def element_does_not_match?(el) el.assert_no_title(*@args, **@kw_args) end def description "have title #{title.inspect}" end private def title @args.first end end end end end
Version data entries
44 entries across 33 versions & 4 rubygems