Module: WithinHelpers

Defined in:
lib/dkdeploy/cucumber/support/with.rb

Overview

Cucumber step helper function for with_in

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



6
7
8
# File 'lib/dkdeploy/cucumber/support/with.rb', line 6

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