Skip to content

Commit

Permalink
Remove another crazy spec
Browse files Browse the repository at this point in the history
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 161eb9d
  • Loading branch information
dentarg authored and ioquatix committed Sep 29, 2023
1 parent 4101575 commit b97c5e7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/spec_rack_json_body_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit b97c5e7

Please sign in to comment.