开发者

How To Test Routes In Rails 3 Using RSpec2?

What am I missing here?

开发者_开发百科it "should recognize a specific api route" do
       assert_routing("/api/api_email/69399ead0ed4ded38e7a101f7c8faf.json", {:controller => "places", :action => "api_email", :api_id => "69399ead0ed4ded38e7a101f7c8faf"})
   end

The controller is correct, the action as well, and the :api_id as well. However, it returns false.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜