Module: Capybara::RSpecMatchers::SpatialSugar
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/capybara/rspec/matchers/spatial_sugar.rb |
Instance Method Summary
Instance Method Details
#above(el)
[ GitHub ]# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 6
def above(el) [:above] = el self end
#below(el)
[ GitHub ]# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 11
def below(el) [:below] = el self end
#left_of(el)
[ GitHub ]# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 16
def left_of(el) [:left_of] = el self end
#near(el)
[ GitHub ]# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 26
def near(el) [:near] = el self end
#options (private)
[ GitHub ]# File 'lib/capybara/rspec/matchers/spatial_sugar.rb', line 33
def # (@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) [:right_of] = el self end