Module: Dekiru::Capybara::Matchers
- Defined in:
- lib/dekiru/capybara/matchers.rb
Defined Under Namespace
Classes: JsNoErrorMatcher
Instance Method Summary collapse
Instance Method Details
#have_no_js_errors ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/dekiru/capybara/matchers.rb', line 33 def have_no_js_errors # NOTE: Extract "\"displays tooltip\" (./spec/system/my_awesome_spec.rb:101)" # From "#<RSpec::ExampleGroups::Nested::Nested_4::Nested_4 \"displays tooltip\" (./spec/system/my_awesome_spec.rb:101)>" example_description = self.inspect.split(' ', 2).last.chop JsNoErrorMatcher.new(example_description) end |