Skip to content

Instantly share code, notes, and snippets.

@jasonkarns
Created August 26, 2015 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonkarns/e85ef5b62ec1c5753595 to your computer and use it in GitHub Desktop.
Save jasonkarns/e85ef5b62ec1c5753595 to your computer and use it in GitHub Desktop.
def matches?(page)
@audit = @a11y_check.call Page.new page
::RSpec::Expectations::FailureAggregator.new(@audit.invocation, nil).aggregate do
@audit.results.violations.each {|v| ::RSpec::Expectations.fail_with v.failure_message }
end
@audit.passed?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment