Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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