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

Ticket #7110: doesnt_reinstall_named_routes.diff

File doesnt_reinstall_named_routes.diff, 0.5 kB (added by kevinclark, 2 years ago)
  • test/controller/integration_test.rb

    old new  
    141141    @session.expects(:post).with(path,params,headers_after_xhr) 
    142142    @session.xml_http_request(path,params,headers) 
    143143  end 
     144   
     145  def test_reset_bang_doesn_reinstall_named_routes 
     146    ActionController::Routing::Routes.named_routes.expects(:install).never 
     147    @session.reset! 
     148  end 
    144149end 
    145150 
    146151# TODO