Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    99class ThreadsController  < ResourcesController; end 
    1010class MessagesController < ResourcesController; end 
    1111class CommentsController < ResourcesController; end 
     12class SheepController < ResourcesController; end 
    1213 
    1314class AccountController <  ResourcesController; end 
    1415class AdminController   <  ResourcesController; end 
     
    5152  end 
    5253 
    5354  def test_multiple_default_restful_routes 
    54     with_restful_routing :messages, :comments do 
     55    with_restful_routing :messages, :comments, :sheep do 
    5556      assert_simply_restful_for :messages 
    5657      assert_simply_restful_for :comments 
     58      assert_simply_restful_for :sheep 
    5759    end 
    5860  end 
    5961