module Capybara::RSpecMatchers

Public Instance Methods

have_button(locator) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 130
def have_button(locator)
  HaveMatcher.new(:button, locator)
end
have_checked_field(locator) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 138
def have_checked_field(locator)
  HaveMatcher.new(:checked_field, locator)
end
have_content(text) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 120
def have_content(text)
  HaveMatcher.new(:content, text.to_s) do |page, matcher|
    %Q(expected there to be content #{matcher.locator.inspect} in #{page.text.inspect})
  end
end
have_css(css, options={}) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 116
def have_css(css, options={})
  HaveMatcher.new(:css, css, options)
end
have_field(locator, options={}) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 134
def have_field(locator, options={})
  HaveMatcher.new(:field, locator, options)
end
have_select(locator, options={}) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 146
def have_select(locator, options={})
  HaveMatcher.new(:select, locator, options)
end
have_selector(*args) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 108
def have_selector(*args)
  HaveSelector.new(*args)
end
have_table(locator, options={}) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 150
def have_table(locator, options={})
  HaveMatcher.new(:table, locator, options)
end
have_unchecked_field(locator) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 142
def have_unchecked_field(locator)
  HaveMatcher.new(:unchecked_field, locator)
end
have_xpath(xpath, options={}) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 112
def have_xpath(xpath, options={})
  HaveMatcher.new(:xpath, xpath, options)
end