Hi all,

I have a controller I'm trying to spec out, and I'm running into some issues with render_to_string.

Basically, the show gets an array of objects, calls render_to_string for each of them, and then renders the show template.

So I have the standard spec:


    it "should render show template" do
      do_get
      response.should render_template('show')
    end


but when I run the spec I get the following failure:

'SearchesController handling GET /searches/1 should render show template' FAILED
expected "show", got "properties/_map_info_box"


Does anybody have any ideas?

Thanks,

Andrew

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to