Sha256: 39fe113c4169930bb1427917eec27df0bda56d9874359c3d0b9f93f394b9782b

Contents?: true

Size: 822 Bytes

Versions: 17

Compression:

Stored size: 822 Bytes

Contents

require "forwardable"

require_relative "../../chain_mail/chainable"
require_relative "../core"
require_relative "../api"

module Axe
  module Matchers
    class BeAxeClean
      extend Forwardable
      def_delegators :@audit, :failure_message, :failure_message_when_negated
      def_delegators :@run, :within, :excluding, :according_to, :checking, :checking_only, :skipping, :with_options

      extend ChainMail::Chainable
      chainable :within, :excluding, :according_to, :checking, :checking_only, :skipping, :with_options

      def initialize
        @run = API::Run.new
      end

      def audit(page)
        @audit ||= Core.new(page).call @run
      end

      def matches?(page)
        audit(page).passed?
      end
    end

    module_function

    def be_axe_clean
      BeAxeClean.new
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
axe-core-api-4.10.1.pre.5294583 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.2 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.2.pre.2cca230 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.1.pre.46a0052 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.1.pre.7e72b19 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.1.pre.5e15f96 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.2.pre.5bd4e5c lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.1.pre.7bf959f lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.0.pre.53569f6 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.1.pre.7a3723a lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.0.pre.d102edb lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.9.1.pre.7a03090 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.9.1.pre.1a5838a lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.0 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.10.0.pre.5d7eac5 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.9.1.pre.f16172e lib/axe/matchers/be_axe_clean.rb