Haml and View tests

Does Rspec work nicely with Haml for controller integrated view tests?

I am getting the following error:

ActionView::TemplateError in ‘Admin::ListingsController index should get
a 200 OK’
undefined method `photo’ for true:TrueClass
On line #2 of admin/listings/_listing.html.haml

1: %tr
2:   %td.photo= image_tag(listing.photo.url(:thumb), :class =>

:photo)

Both photo and the photo.url are stubbed out.

Thanks for the help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs