Ticket #7422: resouce_routing_test_with_uncountable.diff
| File resouce_routing_test_with_uncountable.diff, 0.9 kB (added by danielmorrison, 2 years ago) |
|---|
-
test/controller/resources_test.rb
old new 9 9 class ThreadsController < ResourcesController; end 10 10 class MessagesController < ResourcesController; end 11 11 class CommentsController < ResourcesController; end 12 class SheepController < ResourcesController; end 12 13 13 14 class AccountController < ResourcesController; end 14 15 class AdminController < ResourcesController; end … … 51 52 end 52 53 53 54 def test_multiple_default_restful_routes 54 with_restful_routing :messages, :comments do55 with_restful_routing :messages, :comments, :sheep do 55 56 assert_simply_restful_for :messages 56 57 assert_simply_restful_for :comments 58 assert_simply_restful_for :sheep 57 59 end 58 60 end 59 61