module WithinHelpers

Public Instance Methods

with_scope(locator) { || ... } click to toggle source
# 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