Class: Capybara::RSpecMatchers::Matcher
- Inherits:
-
Object
- Object
- Capybara::RSpecMatchers::Matcher
- Includes:
- RSpec::Matchers::Composable
- Defined in:
- lib/capybara/rspec/matchers.rb
Direct Known Subclasses
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 .string(actual.to_s) end end |