module Capybara::RSpecMatchers::SpatialSugar

Public Instance Methods

above(el) click to toggle source
# File lib/capybara/rspec/matchers/spatial_sugar.rb, line 6
def above(el)
  options[:above] = el
  self
end
below(el) click to toggle source
# File lib/capybara/rspec/matchers/spatial_sugar.rb, line 11
def below(el)
  options[:below] = el
  self
end
left_of(el) click to toggle source
# File lib/capybara/rspec/matchers/spatial_sugar.rb, line 16
def left_of(el)
  options[:left_of] = el
  self
end
near(el) click to toggle source
# File lib/capybara/rspec/matchers/spatial_sugar.rb, line 26
def near(el)
  options[:near] = el
  self
end
right_of(el) click to toggle source
# File lib/capybara/rspec/matchers/spatial_sugar.rb, line 21
def right_of(el)
  options[:right_of] = el
  self
end

Private Instance Methods

options() click to toggle source
# File lib/capybara/rspec/matchers/spatial_sugar.rb, line 33
def options
  # (@args.last.is_a?(Hash) ? @args : @args.push({})).last
  @kw_args
end