Displaying 3 results from an estimated 3 matches for "should_render_rj".
Did you mean:
should_render_rjs
2006 Nov 30
4
response is null when using should_render_rjs
...change_ad_type_form
render :update do |page|
page.replace_html ''ad_sub_form'', :partial => ''text''
end
end
and the following spec:
specify "should return Text subform on AJAX request to
change_ad_type_form" do
controller.should_render_rjs :page,
''ad_sub_form'', :replace_html, ''stuff''
get ''change_ad_type_form''
end
which result is the following:
1)
NoMethodError in ''When creating a new ad, the ad_controller should
return Text subform on AJAX request to change...
2007 Jan 05
4
How To Spec Controllers with Finders
Given this code (which renders rjs), I''m faced with the fixture-
driven way of spec-ing or mocking. How the heck to you mock this so
the code at line (2) and (4) work right? I''m still struggling with
mocks but it seems like this can be done. Forgive the naivety of this
question.
1. def change_quantity
2. @line_item = LineItem.find_by_id(params[:id])
3. unless
2007 Feb 08
3
testing ajax responder actions
I have an Ajax responder method which uses respond_to to make sure it
only works with Ajax. I''m having trouble figuring out how to call this
action successfully. I''m using Rails 1.2.x. Any thoughts?
--
Cheers,
Kevin Williams
http://www.almostserio.us/
"Any sufficiently advanced technology is indistinguishable from
Magic." - Arthur C. Clarke