summaryrefslogtreecommitdiffstats
path: root/test/unit/version_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/version_test.rb')
-rw-r--r--test/unit/version_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index b05096067..a55b095db 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -22,6 +22,10 @@ class VersionTest < ActiveSupport::TestCase
:enumerations, :versions, :projects_trackers,
:custom_fields, :custom_fields_trackers, :custom_fields_projects
+ def setup
+ User.current = nil
+ end
+
def test_create
v = Version.new(:project => Project.find(1), :name => '1.1',
:effective_date => '2011-03-25')