search for: restful_edit_specs

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

2007 Feb 15
4
defining context(s) dynamically
...his helps someone else save a half hour or so.<br> <br> Rgds,<br> &nbsp; Jerry<br> <br> Further details:<br> <br> If I define a method which dynamically constructs a context in my controller_spec.rb file it works fine:<br> <br> <tt>def restful_edit_specs(resource)<br> &nbsp; context "GET /#{resource}/:id;edit (:edit)" do&nbsp; <br> &nbsp;&nbsp;&nbsp; controller_name resource<br> &nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp; resource = resource.to_s<br> &nbsp;&n...