Created
July 8, 2010 02:10
-
-
Save trevmex/467563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'routing another way' do | |
it { should have_resources(:days) } | |
it { should get('/days' => 'days#index') } | |
it { should match('/days' => 'days#index', :via => :get) } | |
it { should recognize('/days', :via => :get).as('days#index') } | |
it { should generate('days#index').from('/days', :via => :get) } | |
it { should recognize('/students/1/days', :via => :get).as('days#index', :student_id => '1') } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment