Re: [rspec-users] Changes in specs for routes in rspec 1.1.99.x

2009-03-03 Thread Jeremy Kleindl
GAh! easy one - I was adding the method argument to the 'route_for()' instead of the 'should ==' hash it compares the generated output with. And now I see how the script you made takes the single string argument from the old style and drops it into a hash that includes the restful method name. Than

Re: [rspec-users] Changes in specs for routes in rspec 1.1.99.x

2009-03-03 Thread Jeremy Kleindl
Thank you for posting this. Is this a script to replace/add arguments to the route_for methods in my current controller routing specs? Will the changes this script affects fix the errors I get when running specs like " route_for(_whatever_)should == '/foo/1' " on :update and :destroy actions genera

[rspec-users] Changes in specs for routes in rspec 1.1.99.x

2009-03-02 Thread Juanma Cervera
Trying the next release of rspec, I have had to make changes in the existing specs for routing. I have written an script with sed that makes this automatically (two files) spec/upgrade.sed /route_for/s/id => 1/id => "1"/g /route_for.*create/s/== \(["'].*["']\)/== {:path => \1, :m