Sha256: 8bfd04d060ce0bbdb65b06345ff271e955a81b80c3bf8af0c6fab7692d90650a
Contents?: true
Size: 466 Bytes
Versions: 14
Compression:
Stored size: 466 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby 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
14 entries across 14 versions & 3 rubygems