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
pull/6827/head
rkh 15 years ago
parent 1a36280dc5
commit af24eae1ac
  1. 4
      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

Loading…
Cancel
Save