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.4.0.8fa09ad lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.4.1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.4.0.pre.f437c8e lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.4.0 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.2.pre.9952248 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.2.pre.17fb7c9 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.2.pre.2e32f26 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.2.pre.dc71aca lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.2 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.1.pre.75130b0 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.1.pre.8005df2 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.1 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.0.pre.a04c46c lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.0.pre.99d4475 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.0.pre.5d6d4c3 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.0.pre.4296492 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.3.0 lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.1.pre.ea3a33f lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.1.pre.d87a85a lib/axe/matchers/be_axe_clean.rb
axe-core-api-4.2.1.pre.1329c45 lib/axe/matchers/be_axe_clean.rb