Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.