Method: Capybara::Node::DocumentMatchers#assert_no_title
- Defined in:
- lib/capybara/node/document_matchers.rb
#assert_no_title(string, **options) ⇒ true #assert_no_title(regexp, **options) ⇒ true
Asserts that the page doesn't have the given title.
32 33 34 35 36 |
# File 'lib/capybara/node/document_matchers.rb', line 32 def assert_no_title(title, **) _verify_title(title, ) do |query| raise Capybara::ExpectationNotMet, query. if query.resolves_for?(self) end end |