Sha256: 46dd8168693add4b02206ef98c29be4447bdf0a47ddb133b10af013302cd9a62

Contents?: true

Size: 256 Bytes

Versions: 18

Compression:

Stored size: 256 Bytes

Contents

require 'spec/helper'

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

18 entries across 18 versions & 4 rubygems

Version Path
Pistos-ramaze-2009.04.08 spec/snippets/thread/into.rb
manveru-ramaze-2009.04.01 spec/snippets/thread/into.rb
manveru-ramaze-2009.04.08 spec/snippets/thread/into.rb
manveru-ramaze-2009.04.18 spec/snippets/thread/into.rb
manveru-ramaze-2009.04.22 spec/snippets/thread/into.rb
manveru-ramaze-2009.04 spec/snippets/thread/into.rb
manveru-ramaze-2009.05.08 spec/snippets/thread/into.rb
manveru-ramaze-2009.05 spec/snippets/thread/into.rb
manveru-ramaze-2009.06.04 spec/snippets/thread/into.rb
manveru-ramaze-2009.06.12 spec/snippets/thread/into.rb
manveru-ramaze-2009.06 spec/snippets/thread/into.rb
rjspotter-ramaze-2009.06.29 spec/snippets/thread/into.rb
rjspotter-ramaze-2009.06.31 spec/snippets/thread/into.rb
ramaze-2009.04 spec/snippets/thread/into.rb
ramaze-2009.05 spec/snippets/thread/into.rb
ramaze-2009.06.04 spec/snippets/thread/into.rb
ramaze-2009.06.12 spec/snippets/thread/into.rb
ramaze-2009.06 spec/snippets/thread/into.rb