diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-01-07 19:27:37 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-01-07 20:14:42 +1300 |
commit | 76d443e70110558f4f1f82a195f8d42219ac44fd (patch) | |
tree | 5429023df2f02e9f958182d9f517fb9c7b227954 | |
parent | 36a13302faaa1f2c29b96f41dc817762f74fe855 (diff) | |
download | rack-to_ary-flatten.tar.gz |
Improve spec compatibility with current master.to_ary-flatten
-rw-r--r-- | test/spec_response.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_response.rb b/test/spec_response.rb index 4f3a4e4e..6958f429 100644 --- a/test/spec_response.rb +++ b/test/spec_response.rb @@ -467,8 +467,8 @@ describe Rack::Response do it "flatten doesn't cause infinite loop" do # https://github.com/rack/rack/issues/419 res = Rack::Response.new("Hello World") - x = res.finish - assert_equal [200, {}, "Hello World"], x.flatten + + res.finish.flatten.must_be_kind_of(Array) end end |