Class: Capybara::RSpecMatchers::Matcher

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

Direct Known Subclasses

HaveCurrentPath, HaveSelector, HaveText, HaveTitle

Instance Method Summary collapse

Instance Method Details

#wrap(actual) ⇒ Object



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

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