Created
August 26, 2015 20:23
-
-
Save jasonkarns/e85ef5b62ec1c5753595 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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