class Axe::AccessibilityExpectation

Public Class Methods

create(negate) click to toggle source
# File lib/axe/expectation.rb, line 15
def self.create(negate)
  negate ? InaccessibleExpectation.new : AccessibleExpectation.new
end
new(page) click to toggle source
# File lib/axe/expectation.rb, line 19
def initialize(page)
  @page = page
end

Public Instance Methods

not_to(matcher)
Alias for: to_not
to(matcher) click to toggle source
# File lib/axe/expectation.rb, line 23
def to(matcher)
  AccessibleExpectation.new.assert @page, matcher
end
to_not(matcher) click to toggle source
# File lib/axe/expectation.rb, line 27
def to_not(matcher)
  InaccessibleExpectation.new.assert @page, matcher
end
Also aliased as: not_to