Module: Bbq::Core::TestUser::Within

Included in:
Bbq::Core::TestUser
Defined in:
lib/bbq/core/test_user/within.rb

Constant Summary collapse

METHODS_USING_WITHIN =
[
  :see?, :not_see?,
  :attach_file, :check, :choose, :click_link_or_button, :click_button,
  :click_link, :click_on, :fill_in, :select, :uncheck, :unselect
]

Instance Method Summary collapse

Instance Method Details

#using_within(args) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/bbq/core/test_user/within.rb', line 21

def using_within(args)
  options = args.extract_options!
  locator = options.delete(:within)
  args.push(options) unless options.empty?

  if locator
    within(locator) { yield }
  else
    yield
  end
end