class Capybara::RSpecMatchers::HaveText

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 136
def description
  "text #{format(text)}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 132
def does_not_match?(actual)
  wrap_does_not_match?(actual) { |el| el.assert_no_text(*@args) }
end
format(content) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 140
def format(content)
  content.inspect
end
matches?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 128
def matches?(actual)
  wrap_matches?(actual) { |el| el.assert_text(*@args) }
end

Private Instance Methods

text() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 146
def text
  @args[0].is_a?(Symbol) ? @args[1] : @args[0]
end