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.
48 lines
2.4 KiB
48 lines
2.4 KiB
#-- copyright
|
|
# OpenProject Costs Plugin
|
|
#
|
|
# Copyright (C) 2009 - 2014 the OpenProject Foundation (OPF)
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# version 3.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#++
|
|
|
|
require 'spec_helper'
|
|
|
|
describe HourlyRatesController do
|
|
describe "routing" do
|
|
it { get('/projects/blubs/hourly_rates/5').should route_to(:controller => 'hourly_rates',
|
|
:action => 'show',
|
|
:project_id => 'blubs',
|
|
:id => '5') }
|
|
|
|
it { get('/projects/blubs/hourly_rates/5/edit').should route_to(:controller => 'hourly_rates',
|
|
:action => 'edit',
|
|
:project_id => 'blubs',
|
|
:id => '5') }
|
|
|
|
it { get('/hourly_rates/5/edit').should route_to(:controller => 'hourly_rates',
|
|
:action => 'edit',
|
|
:id => '5') }
|
|
|
|
it { put('/projects/blubs/hourly_rates/5').should route_to(:controller => 'hourly_rates',
|
|
:action => 'update',
|
|
:project_id => 'blubs',
|
|
:id => '5') }
|
|
|
|
it { post('/projects/blubs/hourly_rates/5/set_rate').should route_to(:controller => 'hourly_rates',
|
|
:action => 'set_rate',
|
|
:project_id => 'blubs',
|
|
:id => '5') }
|
|
end
|
|
end
|
|
|