[Rspec-users] should_have_tag: What am I doing wrong?

Jay Levitt lists-rspec at shopwatch.org
Sat Oct 7 19:07:45 EDT 2006

My spec contains:

     response.should_have_tag "<legend>", :content => "Add new Contact"

The output is:

Spec::Expectations::ExpectationNotMetError in 'The ResourceController 
should do something when I try to edit contacts'
<legend>Add new Contact</legend>
  should include [[{:content=>"Add new Contact", :tag=>"<legend>"}]]

This looks right to me...

Jay Levitt

More information about the Rspec-users mailing list