search for: x_thing_list

Displaying 1 result from an estimated 1 matches for "x_thing_list".

2008 Jan 23
4
expect_render(...).and_return(''x'')
...render :update block. The problem I''m having is that stub_render or expect_render don''t seem to allow and_return to work. The controller method does: if @thing.save render :update do |page| page.insert_html :bottom, ''x_thing_list'', :partial => ''thing'', :object => @thing page.form.reset ''x_new_thing'' end else If I expect/stub_render the partial render (which I need to do if I want to solely test the controller in isolati...