Module: WithinHelpers

Defined in:
lib/mundo_pepino/capybara/extensions.rb

Instance Method Summary collapse

Instance Method Details

#with_scope(locator) ⇒ Object



133
134
135
# File 'lib/mundo_pepino/capybara/extensions.rb', line 133

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