summaryrefslogtreecommitdiffstats
path: root/test/unit/enabled_module_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/enabled_module_test.rb')
-rw-r--r--test/unit/enabled_module_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/enabled_module_test.rb b/test/unit/enabled_module_test.rb
index eae68fbc8..79995dbf2 100644
--- a/test/unit/enabled_module_test.rb
+++ b/test/unit/enabled_module_test.rb
@@ -20,6 +20,10 @@ require File.expand_path('../../test_helper', __FILE__)
class EnabledModuleTest < ActiveSupport::TestCase
fixtures :projects, :trackers, :issue_statuses, :wikis
+ def setup
+ User.current = nil
+ end
+
def test_enabling_wiki_should_create_a_wiki
CustomField.delete_all
project = Project.create!(:name => 'Project with wiki', :identifier => 'wikiproject', :enabled_module_names => [])