Skip to content

Instantly share code, notes, and snippets.

@ilpoldo
Created April 5, 2010 18:59
Show Gist options
  • Select an option

  • Save ilpoldo/356722 to your computer and use it in GitHub Desktop.

Select an option

Save ilpoldo/356722 to your computer and use it in GitHub Desktop.
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