search for: snippet_version_url

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

2007 Nov 07
0
Named routes raising nil.rewrite error
...''faq/:id/version/:version/revert'', :action => ''revert'' end When trying to write the following spec (a regression), I get the error: ======================================== describe SnippetsController, "routes" do it "should route the snippet_version_url to the version action" do snippet_version_url(:id => "1", :version => "41").should == "/foo" end end ======================================== escher: ./script/spec spec/controllers/regressions/ 2007_11_07_snippets_route_spec.rb F 1) NoMethodError...