Created
April 5, 2010 18:59
-
-
Save ilpoldo/356722 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require 'spec_helper' | |
| require (File.expand_path("../../../app/helpers/routes_helper",File.dirname(__FILE__))) | |
| describe ApplicationController, "route generation" do | |
| it "should map tasks to /:owner_id/:project/tasks" do | |
| include RoutesHelper | |
| @project = Factory :public_project | |
| tasks_path(@project).should == "/#{@project.owner.to_param}/#{@project.name_url}/tasks" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment