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

19 lines
1.1 KiB

require 'spec_helper'
describe RbStoriesController do
describe "routing" do
it { get('/projects/project_42/sprints/21/stories').should route_to(:controller => 'rb_stories',
:action => 'index',
:project_id => 'project_42',
:sprint_id => '21') }
it { post('/projects/project_42/sprints/21/stories').should route_to(:controller => 'rb_stories',
:action => 'create',
:project_id => 'project_42',
:sprint_id => '21') }
it { put('/projects/project_42/sprints/21/stories/85').should route_to(:controller => 'rb_stories',
:action => 'update',
:project_id => 'project_42',
:sprint_id => '21',
:id => '85') }
end
end