class Capybara::RSpecMatchers::HaveTitle

Attributes

title[R]

Public Class Methods

new(*args) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 126
def initialize(*args)
  @args = args

  # are set just for backwards compatability
  @title = args.first
end

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 141
def description
  "have title #{title.inspect}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 137
def does_not_match?(actual)
  wrap_does_not_match?(actual) { |el| el.assert_no_title(*@args) }
end
matches?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 133
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_title(*@args) }
end