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/cost_reports_controller_spe...

14 lines
345 B

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe CostReportsController do
before(:each) do
@user = Factory.build(:user)
@user.stub(:roles_for_project)
login_user @user
end
it "should respond with a 404 error" do
get :show, :id => 1, :unit => -1
response.code.should eql("404")
end
end