1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

runner.rb: instance variable

* test/runner.rb (before_setup, after_teardown): use an instance
  variable instead of a class variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-06-16 19:51:38 +00:00
parent dbf2578656
commit 664d209de3

View file

@ -21,7 +21,7 @@ module Test::Unit
module ZombieHunter
def before_setup
@@tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, deleted)| [k, activated]}
@tracepoint_captured_stat = TracePoint.stat.map{|k, (activated, deleted)| [k, activated]}
end
def after_teardown
@ -30,7 +30,7 @@ module Test::Unit
# detect zombie traces.
assert_equal(
@@tracepoint_captured_stat,
@tracepoint_captured_stat,
TracePoint.stat.map{|k, (activated, deleted)| [k, activated]},
"The number of active trace events was changed"
)