Displaying 1 result from an estimated 1 matches for "x_new_thing".
Did you mean:
a_new_thing
2008 Jan 23
4
expect_render(...).and_return(''x'')
...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 isolation), I get:
new Insertion.Bottom("x_thing_list", null);
Form.reset("x_new_thing");
The null is due to the rend...