Sha256: f57fff88ec1cb95489b1373d15f198eb2ebae3dbf26f7c55f344273e3f898440

Contents?: true

Size: 826 Bytes

Versions: 134

Compression:

Stored size: 826 Bytes

Contents

require "forwardable"

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

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

134 entries across 134 versions & 1 rubygems

Version Path
axe-core-api-4.2.0.pre.33afee3 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0.pre.4575cbd lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0.pre.6beb600 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0.pre.edcd659 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0.pre.5a82425 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0.pre.bb86ed5 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0.pre.d50cf94 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.0 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.5880fc5 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.a8e5044 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.c46720b lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.eafff01 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.2bf4a90 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.c36a2a1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.1dd5198 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.88457a3 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.f26d625 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.3039ae4 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.0.0.pre.2b814f9 lib/axe/matchers/be_axe_clean.rb