Clear JobBuffer on teardown
ActiveJob tests should be able to rely on a clean JobBuffer in each test.
This commit is contained in:
parent
4e9fee9629
commit
eb4b540368
@ -19,3 +19,9 @@ def last_value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
teardown do
|
||||
JobBuffer.clear
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user