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>
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>
context "GET /#{resource}/:id;edit (:edit)" do <br>
controller_name resource<br>
<br>
resource = resource.to_s<br>
&n...