From b97c5e7378f9329c95fd244f6b63fab94d4e4052 Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Fri, 29 Sep 2023 10:32:12 +0200 Subject: [PATCH] Remove another crazy spec Triggered by TESTOPTS=--seed=8264 b e rake Seen in CI: https://github.com/rack/rack-contrib/actions/runs/6319320196/job/17160038534#step:4:88 I don't think we should be checking this. See https://github.com/rack/rack-contrib/commit/161eb9d190848254c331810e06feeaad25ec16aa --- test/spec_rack_json_body_parser_spec.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/spec_rack_json_body_parser_spec.rb b/test/spec_rack_json_body_parser_spec.rb index 665e7e0..7e2a317 100644 --- a/test/spec_rack_json_body_parser_spec.rb +++ b/test/spec_rack_json_body_parser_spec.rb @@ -58,14 +58,6 @@ def create_parser(app, **args, &block) _(res[2].to_enum.to_a.join).must_equal %Q({"{\\"key\\": \\"value\\"}"=>nil}) end - specify "should not create additions" do - before = Symbol.all_symbols - env = mock_env(input: %{{"json_class":"this_should_not_be_added"}}) - create_parser(app).call(env) - result = Symbol.all_symbols - before - _(result).must_be_empty - end - specify "should not rescue JSON:ParserError raised by the app" do env = mock_env app = ->(env) { raise JSON::ParserError }