Skip to content

Commit

Permalink
Merge pull request #432 from mame/prevent-warning-during-test
Browse files Browse the repository at this point in the history
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
  • Loading branch information
hsbt authored Jul 3, 2020
2 parents b6e6a4c + 438d85e commit 6174286
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/json_fixtures_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def setup
end

def test_passing
verbose_bak, $VERBOSE = $VERBOSE, nil
for name, source in @passed
begin
assert JSON.parse(source),
Expand All @@ -19,6 +20,8 @@ def test_passing
raise e
end
end
ensure
$VERBOSE = verbose_bak
end

def test_failing
Expand Down

0 comments on commit 6174286

Please sign in to comment.