Class: Axe::AccessibleExpectation

Inherits:
Object
  • Object
show all
Defined in:
lib/axe/expectation.rb

Instance Method Summary collapse

Instance Method Details

#assert(page, matcher) ⇒ Object



3
4
5
# File 'lib/axe/expectation.rb', line 3

def assert(page, matcher)
  raise matcher.failure_message unless matcher.matches? page
end