kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.6 KiB
33 lines
1.6 KiB
12 years ago
|
require 'spec_helper'
|
||
|
|
||
|
describe CostlogController do
|
||
|
describe "routing" do
|
||
|
it { get('/cost_entries').should route_to(:controller => 'costlog',
|
||
|
:action => 'index') }
|
||
|
|
||
|
it { get('/projects/blubs/cost_entries/new').should route_to(:controller => 'costlog',
|
||
|
:action => 'new',
|
||
|
:project_id => 'blubs') }
|
||
|
|
||
|
it { post('/projects/blubs/cost_entries').should route_to(:controller => 'costlog',
|
||
|
:action => 'create',
|
||
|
:project_id => 'blubs') }
|
||
|
|
||
|
it { get('/issues/5/cost_entries/new').should route_to(:controller => 'costlog',
|
||
|
:action => 'new',
|
||
|
:issue_id => '5') }
|
||
|
|
||
|
it { get('/cost_entries/5/edit').should route_to(:controller => 'costlog',
|
||
|
:action => 'edit',
|
||
|
:id => '5') }
|
||
|
|
||
|
it { put('/cost_entries/5').should route_to(:controller => 'costlog',
|
||
|
:action => 'update',
|
||
|
:id => '5') }
|
||
|
|
||
|
it { delete('/cost_entries/5').should route_to(:controller => 'costlog',
|
||
|
:action => 'destroy',
|
||
|
:id => '5') }
|
||
|
end
|
||
|
end
|