module Turnip::ExtraSteps::Support::WithinHelpers

Public Instance Methods

with_scope(locator) { || ... } click to toggle source
# File lib/turnip/extra_steps/support/path_selector_fallbacks.rb, line 33
def with_scope(locator)
  locator ? within(*_selector_for(locator)) { yield } : yield
end