module Pork::Should
Public Instance Methods
execute(stat=Stat.new, *args)
click to toggle source
Calls superclass method
# File lib/pork/more/should.rb, line 11 def execute stat=Stat.new, *args thread = Thread.current original_group, group = thread.group, ThreadGroup.new original_stat = thread[:pork_stat] group.add(thread) thread[:pork_stat] = stat super(stat, *args) ensure thread[:pork_stat] = original_stat original_group.add(thread) end