From 438d85e0407902cf76c497662be5381ea7f9d4c5 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 3 Jul 2020 11:48:46 +0900 Subject: test/json/json_fixtures_test.rb: Prevent an "out of range" warning with `make test-all RUBYOPT=-w` ``` /home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range ``` --- tests/json_fixtures_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/json_fixtures_test.rb b/tests/json_fixtures_test.rb index b2a1ec8..845abb4 100644 --- a/tests/json_fixtures_test.rb +++ b/tests/json_fixtures_test.rb @@ -10,6 +10,7 @@ class JSONFixturesTest < Test::Unit::TestCase end def test_passing + verbose_bak, $VERBOSE = $VERBOSE, nil for name, source in @passed begin assert JSON.parse(source), @@ -19,6 +20,8 @@ class JSONFixturesTest < Test::Unit::TestCase raise e end end + ensure + $VERBOSE = verbose_bak end def test_failing -- cgit v1.2.1