module Capybara::Node::DocumentMatchers
def assert_title(title, **options)
-
(true)-
Raises:
-
(Capybara::ExpectationNotMet)- if the assertion hasn't succeeded during wait time
Options Hash:
(**options)-
:exact(Boolean) -- When passed a string should the match be exact or just substring -
:wait(Numeric) -- Maximum time that Capybara will wait for title to eq/match given string/regexp argument
Parameters:
-
regexp(Regexp) -- The regexp that title should match to -
string(String) -- The string that title should include
Overloads:
-
assert_title(regexp, **options) -
assert_title(string, **options)
def assert_title(title, **options) _verify_title(title, options) do |query| raise Capybara::ExpectationNotMet, query.failure_message unless query.resolves_for?(self) end end