search for: 2007_11_07_snippets_route_spec

Displaying 1 result from an estimated 1 matches for "2007_11_07_snippets_route_spec".

2007 Nov 07
0
Named routes raising nil.rewrite error
...; 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 in ''SnippetsController routes should route the snippet_version_url to the version action'' You have a nil object when you didn''t expect it! The error occurred while evaluating nil.rewrite (eval):19:in `snippet_version_url'' ./spec/controlle...