Class: Capybara::RSpecMatchers::Matcher

Inherits:
Object
  • Object
show all
Includes:
RSpec::Matchers::Composable
Defined in:
lib/capybara/rspec/matchers.rb

Direct Known Subclasses

HaveSelector, HaveText, HaveTitle

Instance Method Summary collapse

Instance Method Details

#wrap(actual) ⇒ Object



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

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