Displaying 1 result from an estimated 1 matches for "submit_button_value".
2007 Oct 25
0
How to spec a render:update call
Hi folks.
I''m trying to work out how to verify that a controller has called a
render:update block similar to:
render :update do |page|
page.replace_html ''edit'', :partial => ''form'', :locals => { :operation
=> ''edit'', :submit_button_value => ''Update'' }
end
We used to test this with something like:
response.should render_template("_form")
response.should have_rjs(:replace_html, ''edit'')
... which works, but doesn''t validate the parameters.
Then I discovered we could...