From af24eae1ac7fbf6d0873284ddfa7688400d0633c Mon Sep 17 00:00:00 2001 From: rkh Date: Tue, 13 Oct 2009 15:07:32 +0000 Subject: [PATCH] make sure current_user is an admin when running tests git-svn-id: https://dev.finn.de/svn/cockpit/trunk@185 7926756e-e54e-46e6-9721-ed318f58905e --- spec/models/cost_entry_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/models/cost_entry_spec.rb b/spec/models/cost_entry_spec.rb index 82ce457ef5..3bedb35adb 100644 --- a/spec/models/cost_entry_spec.rb +++ b/spec/models/cost_entry_spec.rb @@ -1,6 +1,10 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe CostEntry do + + before do + User.current = users("admin") + end fixtures :users fixtures :cost_types