Thanks for your help Aslak, but I still didn't manage to make it pass >> get :show, :id=>"34"
it sends me this error then : No route matches {:action=>"show", :controller=>"surveys/report", :id=>"34"} >> Try rake routes, and also try to spec the routing in the associated >> routing_spec.rb. and this test passes : it "should map { :controller => 'report', :action => 'show', :survey_id => 1} to /survey/1/report" do route_for(:controller => "surveys/report", :action => "show", :survey_id => 1).should == "/surveys/1/report" end also if I try to remove my condition the test passes so the routes must be correct it "should return the survey corresponding to the report" do #Survey.should_receive(:find) get :show, :survey_id=>"34", :controller =>"surveys/report" end Any other idea ? _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users