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:
parent
cfd2f9d352
commit
4205bcd4ce
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue