Hi there,

Hoping someone can help with this or point out alternative options for
testing for the presence of a css class on a specific element.

We're using rspec and I would like to check for the presence of a
specific css class ('current') on an element (link).

response.should have_tag('a#some_link')

I was hoping that the have_tag matcher might have some option to
specify a class to match but can't gleam anything from the docs.

Any suggestions would be really welcome?

Armand

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to