Sha256: d1d04feff835544f5266bf9e24f186a080cfd139514d50cd1c8d2cb51ea8866a
Contents?: true
Size: 608 Bytes
Versions: 45
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true module Capybara module RSpecMatchers module SpatialSugar def above(el) options[:above] = el self end def below(el) options[:below] = el self end def left_of(el) options[:left_of] = el self end def right_of(el) options[:right_of] = el self end def near(el) options[:near] = el self end private def options # (@args.last.is_a?(Hash) ? @args : @args.push({})).last @kw_args end end end end
Version data entries
45 entries across 34 versions & 5 rubygems