diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-10 11:01:44 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-13 22:24:59 +0900 |
commit | 799da829bcc62bc92c1cb3088591bdb9a92d1799 (patch) | |
tree | c39b2822c3e11afece34b199ab6b2f14159d47b8 /test/plum | |
parent | 0616e680865d5c5d82f7547c1e38b348c945591c (diff) | |
download | plum-799da829bcc62bc92c1cb3088591bdb9a92d1799.tar.gz |
hpack: context: refactor test util method
Diffstat (limited to 'test/plum')
-rw-r--r-- | test/plum/hpack/test_context.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/plum/hpack/test_context.rb b/test/plum/hpack/test_context.rb index cb92361..942d34c 100644 --- a/test/plum/hpack/test_context.rb +++ b/test/plum/hpack/test_context.rb @@ -36,10 +36,10 @@ class HPACKContextTest < Minitest::Test private def new_context(limit = 1 << 31) - @c ||= Class.new { + klass = Class.new { include Plum::HPACK::Context - public :initialize, :store, :fetch, :evict + public *Plum::HPACK::Context.private_instance_methods } - @c.new(limit) + klass.new(limit) end end |