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

Changeset 4805

Show
Ignore:
Timestamp:
08/22/06 07:18:24 (2 years ago)
Author:
ulysses
Message:

Add test case from ticket #4090

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/routing_test.rb

    r4763 r4805  
    15481548    assert_equal "/connection", url 
    15491549  end 
     1550   
     1551  def test_action_left_off_when_id_is_recalled 
     1552    set.draw do |map| 
     1553      map.connect ':controller/:action/:id' 
     1554    end 
     1555    assert_equal '/post', set.generate( 
     1556      {:controller => 'post', :action => 'index'}, 
     1557      {:controller => 'post', :action => 'show', :id => '10'} 
     1558    ) 
     1559  end 
     1560   
    15501561end 
    15511562 
     
    15881599    assert_equal %w(vendor\\rails\\railties\\builtin\\rails_info vendor\\rails\\actionpack\\lib app\\controllers app\\helpers app\\models lib .), paths 
    15891600  end 
     1601   
    15901602end