开发者

How To Test Routes In Rails 3 Using RSpec2?

开发者 https://www.devze.com 2023-03-07 02:14 出处:网络
What am I missing here? 开发者_开发百科it \"should recognize a specific api route\" do assert_routing(\"/api/api_email/69399ead0ed4ded38e7a101f7c8faf.json\", {:controller => \"places\", :action =&

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

精彩评论

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