Class: Capybara::RSpecMatchers::Matcher
- Inherits:
-
Object
- Object
- Capybara::RSpecMatchers::Matcher
show all
- Includes:
- RSpec::Matchers::Composable
- Defined in:
- lib/capybara/rspec/matchers.rb
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
|