Class: Spec::Matchers::Have

Inherits:
Object show all
Defined in:
lib/elementor/spec.rb

Instance Method Summary collapse

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(options={})
  @args ||= []
  @args << proc { |set| set.with_attrs(options) }
  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