module Spec::Example::ArgsAndOptions

def add_options(args, options={}) # :nodoc:

:nodoc:
def add_options(args, options={}) # :nodoc:
  args << {} unless Hash === args.last
  args.extend WithOptions
  args.options.merge!(options)
  args.options
end

def args_and_options(*args) # :nodoc:

:nodoc:
def args_and_options(*args) # :nodoc:
  options = Hash === args.last ? args.pop : {}
  return args, options
end

def set_location(options, location) # :nodoc:

:nodoc:
def set_location(options, location) # :nodoc:
  options[:location] ||= location
end