Module: WithinHelpers

Defined in:
lib/generators/voluntary/install/templates/features/step_definitions/web_steps.rb,
lib/generators/voluntary/product_dummy/templates/features/step_definitions/web_steps.rb

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



28
29
30
# File 'lib/generators/voluntary/install/templates/features/step_definitions/web_steps.rb', line 28

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