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/cost_objects_routing_spec.rb

28 lines
1.7 KiB

require 'spec_helper'
describe CostObjectsController do
describe "routing" do
it { get('/projects/blubs/cost_objects/new').should route_to(:controller => 'cost_objects',
:action => 'new',
:project_id => 'blubs') }
it { post('/projects/blubs/cost_objects').should route_to(:controller => 'cost_objects',
:action => 'create',
:project_id => 'blubs') }
it { get('/projects/blubs/cost_objects').should route_to(:controller => 'cost_objects',
:action => 'index',
:project_id => 'blubs') }
it { get('/cost_objects/5').should route_to(:controller => 'cost_objects',
:action => 'show',
:id => '5') }
it { put('/cost_objects/5').should route_to(:controller => 'cost_objects',
:action => 'update',
:id => '5') }
it { delete('/cost_objects/5').should route_to(:controller => 'cost_objects',
:action => 'destroy',
:id => '5') }
it { post('/cost_objects/5/preview').should route_to(:controller => 'cost_objects',
:action => 'preview',
:id => '5') }
end
end