Created
July 6, 2010 23:05
-
-
Save trevmex/466064 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" do | |
it "recognizes and generates #index" do | |
get("/days").should have_routing('days#index') | |
end | |
it "generates #index" do | |
get("/days").should generate('days#index') | |
end | |
it "recognizes #index" do | |
('days#index').should recognize get("/days") | |
end | |
describe "nested in students" do | |
it "recognizes #index" do | |
('days#index').with(:student_id => "1").should recognize get("/students/1/days") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment