summaryrefslogtreecommitdiffstats
path: root/test/unit/token_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/token_test.rb')
-rw-r--r--test/unit/token_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/token_test.rb b/test/unit/token_test.rb
index a839a0810..2c6c865c2 100644
--- a/test/unit/token_test.rb
+++ b/test/unit/token_test.rb
@@ -20,6 +20,10 @@ require File.expand_path('../../test_helper', __FILE__)
class TokenTest < ActiveSupport::TestCase
fixtures :tokens, :users, :email_addresses
+ def setup
+ User.current = nil
+ end
+
def test_create
token = Token.new
token.save