Skip to content

Commit 4858a09

Browse files
committed
Reset the key formatter in the teardown
We were getting intermittent failures when the test for setting the global key_format setting was running last and then it was leaking the setup into the next test file.
1 parent 165e9e4 commit 4858a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jbuilder_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def empty?
4949

5050

5151
class JbuilderTest < ActiveSupport::TestCase
52-
setup do
52+
teardown do
5353
Jbuilder.send :class_variable_set, '@@key_formatter', nil
5454
end
5555

0 commit comments

Comments
 (0)