Sha256: 304278b3ab654ab6bcc0b88261fee03eb995f4244e7ccc59823e19b8a08a95fc
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
# Capybara::Accessible Defines a web driver and extends Capybara to assert accessibility on page visits in [RSpec feature specs](https://www.relishapp.com/rspec/rspec-rails/docs/feature-specs/feature-spec). capybara-accessible uses [Google's Accessibility Developer Tools](https://code.google.com/p/accessibility-developer-tools/) assertions to performs automated accessibility audits. Use capybara-accessible in place of the Selenium or capybara-webkit drivers to invoke these assertions on link clicks and page visits. ## Installation Add this line to your application's Gemfile: gem 'selenium-webdriver' gem 'capybara-accessible' And then execute: $ bundle Or install it yourself as: $ gem install capybara-accessible ## Usage Require and register the driver in spec_helper.rb: require 'capybara/rspec' require 'capybara/accessible' Capybara.current_driver = :accessible Optionally exclude rules from being run: Capybara::Accessible::Auditor.exclusions = ['AX_FOCUS_01'] The full list of rules is on the [Google Accessibility Developer Tools wiki](https://code.google.com/p/accessibility-developer-tools/wiki/AuditRules). ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-accessible-0.0.2 | README.md |