Module: WithinHelpers

Defined in:
lib/cucumber_off_rails/templates/features/step_definitions/selector_steps.rb

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



4
5
6
# File 'lib/cucumber_off_rails/templates/features/step_definitions/selector_steps.rb', line 4

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