The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Testing Rails Application Accessibility

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Stewart

Posts: 72
Nickname: estewart
Registered: Dec, 2003

Eric Stewart is software developer from Austin, Texas.
Testing Rails Application Accessibility Posted: Dec 28, 2005 10:15 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eric Stewart.
Original Post: Testing Rails Application Accessibility
Feed Title: Ponderings On Ruby
Feed URL: http://blog.eric-stewart.com/category/programming-ruby.rss
Feed Description: This is the Ruby related section of Eric Stewart's weblog. These entries will be the commentary of a long time Java/C++ programmer that started exploring Ruby in 2003.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eric Stewart
Latest Posts From Ponderings On Ruby

Advertisement

As I mentioned previously, I have been working on a Rails plugin to help check the accessibility of pages in a Rails project.

I was inspired by Scott Raymond’s assert_valid_markup plugin for Rails and decided to whip up a similar plugin for testing the accessibility of pages in my current Rails project.

Using

You will be able to write a functional test that does something like:
def test_index
  get :index
  assert_accessible
end

I had really wanted to polish this some more before putting it out there for others to use, but I have been slow at finding the time so I’m making it available. It has been working well on my current project but there is much that can be done to improve it. It is still really rough around the edges and your mileage may vary.

You will probably get more mileage out of it by pairing it up with assert_valid_markup, as invalid markup usually triggers some sort of accessibility problem.

Installing

Check out the source from Subversion, or preferable use Rails own script/plugin script to help install it. All you have to do (from the root of your rails project) is:

script/plugin source http://eric-stewart.com/svn/rails/plugins/
script/plugin install assert_accessible

Or, for those that want to do a straight subversion checkout:

svn co http://eric-stewart.com/svn/rails/plugins/assert_accessible/

That’s it! Let me know how it works for you.

Technorati Tags: , , ,

Read: Testing Rails Application Accessibility

Topic: Appending lazy lists Previous Topic   Next Topic Topic: Happy Empowered Peoplei

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use