123456789_123456789_123456789_123456789_123456789_

Module: Capybara::RSpecMatchers::SpatialSugar

Instance Method Summary

Instance Method Details

#above(el)

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 6

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

#below(el)

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 11

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

#left_of(el)

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 16

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

#near(el)

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 26

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

#options (private)

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 33

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

#right_of(el)

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 21

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