class Capybara::RSpecMatchers::HaveTitle

Public Class Methods

new(*args) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 162
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 177
def description
  "have title #{@title.inspect}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 173
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 169
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_title(*@args) }
end