Class: Spec::Matchers::Have
Instance Method Summary collapse
- #with_attrs(options = {}) ⇒ Object (also: #attrs)
- #with_text(*args) ⇒ Object (also: #text)
Instance Method Details
#with_attrs(options = {}) ⇒ Object Also known as: attrs
12 13 14 15 16 |
# File 'lib/elementor/spec.rb', line 12 def with_attrs(={}) @args ||= [] @args << proc { |set| set.with_attrs() } self end |
#with_text(*args) ⇒ Object Also known as: text
4 5 6 7 8 |
# File 'lib/elementor/spec.rb', line 4 def with_text(*args) @args ||= [] @args << proc { |set| set.with_text(*args) } self end |