Module: Test::Unit::Capybara::FindErrorWrapper
- Defined in:
- lib/test/unit/capybara.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
69 70 71 72 73 74 |
# File 'lib/test/unit/capybara.rb', line 69 def included(base) base.module_eval do alias_method :find_error_original, :find_error alias_method :find_error, :find_error_for_test_unit end end |
Instance Method Details
#find_error_for_test_unit(*args) ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'lib/test/unit/capybara.rb', line 77 def find_error_for_test_unit(*args) error = find_error_original(*args) if error.is_a?(::Capybara::ElementNotFound) error = ElementNotFound.new(nil, @query.selector.name, @query.locator, error.) end error end |