Module: WithinHelpers

Defined in:
lib/generators/echo_base/templates/features/step_definitions/web_steps.rb

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



13
14
15
# File 'lib/generators/echo_base/templates/features/step_definitions/web_steps.rb', line 13

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