class Capybara::RSpecMatchers::Matchers::HaveText

Public Instance Methods

description() click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/have_text.rb, line 17
def description
  "text #{format(text)}"
end
element_does_not_match?(el) click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/have_text.rb, line 13
def element_does_not_match?(el)
  el.assert_no_text(*@args)
end
element_matches?(el) click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/have_text.rb, line 9
def element_matches?(el)
  el.assert_text(*@args)
end
format(content) click to toggle source
# File lib/isomorfeus/puppetmaster/rspec/matchers/have_text.rb, line 21
def format(content)
  content.inspect
end

Private Instance Methods

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