Fix test added in #32444

Currently test `#test_logger_does_not_mutate_app_return` doesn't
test mutation of response and the test passes with and without changes
added in #32444. `#freeze` response in the test in order to
test mutation.
This commit is contained in:
bogdanvlviv 2018-04-06 13:50:15 +03:00
parent d514ce9199
commit fd1c8c16c7
No known key found for this signature in database
GPG Key ID: E4ACD76A6DB6DFDD

@ -81,11 +81,13 @@ def test_notification_on_raise
end
def test_logger_does_not_mutate_app_return
response = []
response = [].freeze
app = TestApp.new(response)
logger = TestLogger.new(app: app)
assert_no_changes("response") do
logger.call("REQUEST_METHOD" => "GET")
assert_nothing_raised do
logger.call("REQUEST_METHOD" => "GET")
end
end
end
end