Module: ElabsMatchers::Matchers::HaveAttribute

Defined in:
lib/elabs_matchers/matchers/have_attribute.rb

Defined Under Namespace

Classes: HaveAttributeMatcher

Instance Method Summary collapse

Instance Method Details

#have_attribute(label, value) ⇒ Object

Asserts if the supplied show_for* attribute exists or not

Example: page.should have_attribute(“Status”, “Pending”)

Parameters:

  • label (String)

    The name of the attribute.

  • value (String)

    The value of the attribute.



61
62
63
# File 'lib/elabs_matchers/matchers/have_attribute.rb', line 61

def have_attribute(label, value)
  HaveAttributeMatcher.new(label, value)
end