summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-08-10 11:01:44 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-08-13 22:24:59 +0900
commit799da829bcc62bc92c1cb3088591bdb9a92d1799 (patch)
treec39b2822c3e11afece34b199ab6b2f14159d47b8
parent0616e680865d5c5d82f7547c1e38b348c945591c (diff)
downloadplum-799da829bcc62bc92c1cb3088591bdb9a92d1799.tar.gz
hpack: context: refactor test util method
-rw-r--r--test/plum/hpack/test_context.rb6
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