2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-29 13:07:41 +00:00

Less cross-test thread variable pollution.

This commit is contained in:
edogawaconan 2014-12-06 01:01:17 +09:00
parent af39d0718b
commit 2d6da991fe

View File

@ -15,4 +15,14 @@ class ActiveSupport::TestCase
t.rewind t.rewind
t t
end end
setup :reset_thread_variables
private
def reset_thread_variables
%w(danbooru-user danbooru-user_id).each do |x|
Thread.current[x] = nil
end
end
end end