module Capybara::RSpecMatchers::SpatialSugar

def above(el)

def above(el)
  options[:above] = el
  self
end

def below(el)

def below(el)
  options[:below] = el
  self
end

def left_of(el)

def left_of(el)
  options[:left_of] = el
  self
end

def near(el)

def near(el)
  options[:near] = el
  self
end

def options

def options
  # (@args.last.is_a?(Hash) ? @args : @args.push({})).last
  @kw_args
end

def right_of(el)

def right_of(el)
  options[:right_of] = el
  self
end