1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Use public ios method in test [changelog skip] (#2025)

ios is an `attr_reader`, so this effectively the same thing, but testing
a public method instead of reaching into the internal state of the class
being tested seems like a win to me.
This commit is contained in:
Daniel Colson 2019-10-11 05:00:58 -04:00 committed by Nate Berkopec
parent cfd2f9d352
commit 4205bcd4ce

View file

@ -22,7 +22,7 @@ class TestBinderBase < Minitest::Test
end
def ssl_context_for_binder(binder)
binder.instance_variable_get(:@ios)[0].instance_variable_get(:@ctx)
binder.ios[0].instance_variable_get(:@ctx)
end
end