From 1e039474a2d55bdc7cfc5a01b4d8cf00ae446a76 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 3 Jul 2020 11:45:58 +0900 Subject: test/json/json_fixtures_test.rb: Prevent an "out of range" warning ``` /home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range ``` --- test/json/json_fixtures_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/json') diff --git a/test/json/json_fixtures_test.rb b/test/json/json_fixtures_test.rb index b2a1ec8b8c..845abb4867 100644 --- a/test/json/json_fixtures_test.rb +++ b/test/json/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.3