summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-03 12:06:48 +0900
committerGitHub <noreply@github.com>2020-07-03 12:06:48 +0900
commit617428650d48db8a4b5439968e441f859605c6f3 (patch)
tree2a57295d36130c8f4dff87932f4d8e114f82abc1
parentb6e6a4c894c2dce2f92ab2f9752162189752d798 (diff)
parent438d85e0407902cf76c497662be5381ea7f9d4c5 (diff)
downloadjson-617428650d48db8a4b5439968e441f859605c6f3.tar.gz
Merge pull request #432 from mame/prevent-warning-during-test
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
-rw-r--r--tests/json_fixtures_test.rb3
1 files changed, 3 insertions, 0 deletions
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