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/controllers/my_projects_overview_contro...

29 lines
589 B

require File.dirname(__FILE__) + '/../spec_helper'
describe ProjectsController do
before :each do
@controller.stub!(:set_localization)
@role = Factory.create(:non_member)
@user = Factory.create(:admin)
User.stub!(:current).and_return @user
@params = {}
end
describe 'index' do
integrate_views
before do
@project = Factory.create(:project)
@params[:id] = @project.id
end
it 'renders the overview page' do
get 'index', @params
response.should be_success
response.should render_template 'index'
end
end
end