Class: Capybara::RSpecMatchers::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara/rspec/matchers.rb

Direct Known Subclasses

HaveSelector, HaveText, HaveTitle

Instance Method Summary collapse

Instance Method Details

#wrap(actual) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/capybara/rspec/matchers.rb', line 4

def wrap(actual)
  if actual.respond_to?("has_selector?")
    actual
  else
    Capybara.string(actual.to_s)
  end
end