Module: WithinHelpers

Defined in:
lib/testing/step_definitions/capybara_steps.rb

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



28
29
30
# File 'lib/testing/step_definitions/capybara_steps.rb', line 28

def with_scope(locator)
  locator ? within(*selector_for(locator)) { yield } : yield
end