Module: WithinHelpers

Defined in:
lib/SimpliTest/helpers/step_helpers/within_helpers.rb

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



2
3
4
# File 'lib/SimpliTest/helpers/step_helpers/within_helpers.rb', line 2

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