Method: Capybara::RSpecMatchers#have_text

Defined in:
lib/capybara/rspec/matchers.rb

#have_text(text_or_type, *args, **options) ⇒ Object Also known as: have_content

RSpec matcher for text content.



130
131
132
# File 'lib/capybara/rspec/matchers.rb', line 130

def have_text(text_or_type, *args, **options)
  Matchers::HaveText.new(text_or_type, *args, **options)
end