Class: Capybara::RSpecMatchers::Matchers::HaveTitle
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
WrappedElementMatcher ,
Base
|
|
Instance Chain:
|
|
Inherits: |
Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
|
Defined in: | lib/capybara/rspec/matchers/have_title.rb |
Class Method Summary
Instance Attribute Summary
Base
- Inherited
Instance Method Summary
Constructor Details
This class inherits a constructor from Capybara::RSpecMatchers::Matchers::Base
Instance Method Details
#description
[ GitHub ]# File 'lib/capybara/rspec/matchers/have_title.rb', line 17
def description "have title #{title.inspect}" end
#element_does_not_match?(el) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/have_title.rb', line 13
def element_does_not_match?(el) el.assert_no_title(*@args, **@kw_args) end
#element_matches?(el) ⇒ Boolean
# File 'lib/capybara/rspec/matchers/have_title.rb', line 9
def element_matches?(el) el.assert_title(*@args, **@kw_args) end
#title (private)
[ GitHub ]# File 'lib/capybara/rspec/matchers/have_title.rb', line 23
def title @args.first end