Jim Burgess wrote in post #967016: > Oh, right. Thanks a lot. That had been driving me mad (it's an exercise > in a book I'm reading). I changed the test method to: > > def test_should_display_airport_names_in_show > get :show, :id => flights(:dus_muc).id > assert_select 'p', "Departure airport:\n DUS" > end > > and it works perfectly. > Thanks again. > Jim
View tests are a pain. I highly recommend Cucumber instead. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.