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.6.1.pre.bb0471d lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1.pre.74de72f lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1.pre.311e4da lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1.pre.c43ee49 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1.pre.81ca285 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1.pre.4dbab74 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1.pre.6f8a176 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.0.pre.47f4589 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.0.pre.761c828 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.0.pre.094e546 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.6.0 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1.pre.9e72a1b lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1.pre.9dea670 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1.pre.e6f7e3f lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1.pre.4e009be lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1.pre.7bf550f lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1.pre.343efa9 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.5.0.pre.5d7e4b0 lib/axe/matchers/be_axe_clean.rb