OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/spec/routing/costlog_routing_spec.rb

33 lines
1.7 KiB

require 'spec_helper'
describe CostlogController do
describe "routing" do
it { get('/work_packages/5/cost_entries').should route_to(:controller => 'costlog',
:action => 'index',
:work_package_id => '5') }
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('/work_packages/5/cost_entries/new').should route_to(:controller => 'costlog',
:action => 'new',
:work_package_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