1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix another rack SPEC violation

This commit is contained in:
Aaron Patterson 2015-08-25 17:22:52 -07:00
parent 7401c4a1e9
commit 27902c7e96

View file

@ -75,7 +75,7 @@ module MiddlewareTest
test "middleware that is 'use'd is called as part of the Rack application" do
result = @app.call(env_for("/"))
assert_equal ["Hello World"], result[2]
assert_equal ["Hello World"], [].tap { |a| result[2].each { |x| a << x } }
assert_equal "Success", result[1]["Middleware-Test"]
end