summaryrefslogtreecommitdiffstats
path: root/test/unit/default_data_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/default_data_test.rb')
-rw-r--r--test/unit/default_data_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/default_data_test.rb b/test/unit/default_data_test.rb
index f7aea7685..6a6a223bd 100644
--- a/test/unit/default_data_test.rb
+++ b/test/unit/default_data_test.rb
@@ -21,6 +21,10 @@ class DefaultDataTest < ActiveSupport::TestCase
include Redmine::I18n
fixtures :roles
+ def setup
+ User.current = nil
+ end
+
def test_no_data
assert !Redmine::DefaultData::Loader::no_data?
clear_data