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