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:
parent
d514ce9199
commit
fd1c8c16c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user