Module: Capybara::RSpecMatchers::SpatialSugar
- Included in:
- Matchers::CountableWrappedElementMatcher
- Defined in:
- lib/capybara/rspec/matchers/spatial_sugar.rb
Instance Method Summary collapse
- #above(el) ⇒ Object
- #below(el) ⇒ Object
- #left_of(el) ⇒ Object
- #near(el) ⇒ Object
- #right_of(el) ⇒ Object
Instance Method Details
#above(el) ⇒ Object
6 7 8 9 |
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 6 def above(el) [:above] = el self end |
#below(el) ⇒ Object
11 12 13 14 |
# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 11 def below(el) [: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) [: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) [: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) [:right_of] = el self end |