Sha256: 3fa1ff1090ac28b29b287708ac0301a6168a071a272d1d8b150b091b20433153

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

module Capybara::Accessible
  class Driver < Capybara::Selenium::Driver
    include Capybara::Accessible::Auditor

    def visit(path)
      super
      if audit_failures.any?
        raise Capybara::Accessible::InaccessibleError, failure_messages
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
capybara-accessible-0.1.8 lib/capybara/accessible/driver.rb
capybara-accessible-0.1.7 lib/capybara/accessible/driver.rb
capybara-accessible-0.1.6 lib/capybara/accessible/driver.rb
capybara-accessible-0.1.5 lib/capybara/accessible/driver.rb
capybara-accessible-0.1.4 lib/capybara/accessible/driver.rb
capybara-accessible-0.1.1 lib/capybara/accessible/driver.rb
capybara-accessible-0.1.0 lib/capybara/accessible/driver.rb