æ¬æ¥ãããã®ã§æçã«ãã¡ããã¡ããå¤ãã£ã¦ããã®ã§ã¯ã¾ã£ããã¤ã³ããã rspec-rails 1.2.2 ã«ã¼ãã£ã³ã°å¨ãã®exampleã®æ¸ãæ¹ãå¤ãã£ã¦ãããroutes_for(url_params)ã®ã»ã idãªãããStringã§æå®ããå¿ è¦ãã it "should map #show in rspec-rails 1.1.x" do route_for(:controller => "blogs", :action => "show", :id => 1).should == "/blogs/1" end it "should map #show in rspec-rails 1.2.x" do route_for(:controller => "blogs", :action => "show", :id => "1").should == "/blogs/1" end
{{#tags}}- {{label}}
{{/tags}}