Module: Kernel

Defined in:
lib/pork/more/should.rb

Instance Method Summary collapse

Instance Method Details

#should(*args, &block) ⇒ Object



5
6
7
8
# File 'lib/pork/more/should.rb', line 5

def should *args, &block
  stat = Thread.current.group.list.find{ |t| t[:pork_stat] }[:pork_stat]
  Pork::Expect.new(stat, self, *args, &block)
end