Skip to content

Commit 6174286

Browse files
authored
Merge pull request #432 from mame/prevent-warning-during-test
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
2 parents b6e6a4c + 438d85e commit 6174286

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/json_fixtures_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def setup
1010
end
1111

1212
def test_passing
13+
verbose_bak, $VERBOSE = $VERBOSE, nil
1314
for name, source in @passed
1415
begin
1516
assert JSON.parse(source),
@@ -19,6 +20,8 @@ def test_passing
1920
raise e
2021
end
2122
end
23+
ensure
24+
$VERBOSE = verbose_bak
2225
end
2326

2427
def test_failing

0 commit comments

Comments
 (0)