Re: Beginning Ruby on Rails E-Commerce : Errata Help

Bala Paranj
2006-12-04T03:32:00Z

On page 77, there is a test_destroy method that fails on assert_tag

   assert_tag :tag => ''div'',
                 :attributes => {:id => ''notice''},
                 :content => ''Successfully deleted author Joel
Spolsky''

I am on Rails 1.2 and the assert_tag has been deprecated. The test was
failing so I used assert_select tag:

assert_select "div#notice", ''Successfully deleted author Joel
Spolsky''


> I used tail -f log/test.log to see exactly what was happening in there.
>
> n.