mirror of
https://github.com/moebooru/moebooru
synced 2025-08-31 05:55:11 +00:00
Less cross-test thread variable pollution.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user