Sha256: ece3c0f6acc3eba6d2da1c2521356e986f59dc429234f9ffd19914677e0f7dac
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the MIT license. require File.expand_path('../../../../lib/ramaze/spec/helper/snippets', __FILE__) describe 'Thread.into' do it 'should provide access to thread vars' do Thread.current[:foo] = :bar Thread.new{ Thread.current[:foo].should == nil }.join Thread.into{ Thread.current[:foo].should == :bar }.join end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2012.04.14 | spec/snippets/thread/into.rb |
ramaze-2012.03.07 | spec/snippets/thread/into.rb |