Module: Capybara::RSpecMatchers::SpatialSugar

Included in:
Matchers::CountableWrappedElementMatcher
Defined in:
lib/capybara/rspec/matchers/spatial_sugar.rb

Instance Method Summary collapse

Instance Method Details

#above(el) ⇒ Object


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

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

#below(el) ⇒ Object


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

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

#left_of(el) ⇒ Object


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

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

#near(el) ⇒ Object


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

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

#right_of(el) ⇒ Object


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

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