Module: Pork::Should
- Included in:
- Executor
- Defined in:
- lib/pork/more/should.rb
Instance Method Summary collapse
Instance Method Details
#execute(mode, stat = Stat.new, *args) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/pork/more/should.rb', line 13 def execute mode, stat=Stat.new, *args thread = Thread.current original_group, group = thread.group, ThreadGroup.new group.add(thread) thread[:pork_stat] = stat super(mode, stat, *args) ensure original_group.add(thread) end |