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

Version Path
Pistos-ramaze-2009.06.12 spec/snippets/thread/into.rb
manveru-ramaze-2009.07 spec/snippets/thread/into.rb
ramaze-2011.12.28 spec/snippets/thread/into.rb
ramaze-2011.10.23 spec/snippets/thread/into.rb
ramaze-2011.07.25 spec/snippets/thread/into.rb
ramaze-2011.01.30 spec/snippets/thread/into.rb
ramaze-2011.01 spec/snippets/thread/into.rb
ramaze-2010.06.18 spec/snippets/thread/into.rb
ramaze-2010.04.04 spec/snippets/thread/into.rb
ramaze-2010.04 spec/snippets/thread/into.rb
ramaze-2010.03 spec/snippets/thread/into.rb
ramaze-2010.01 spec/snippets/thread/into.rb
ramaze-2009.10 spec/snippets/thread/into.rb
ramaze-2009.07 spec/snippets/thread/into.rb