Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.332 kb
require 'rspec'
describe 'Joining an array that contains arrays' do
it 'should work across multiple threads without error' do
a = [(1..100).to_a]
lambda do
result = (1..100).map { Thread.new { 10.times { a.join }; :ok } }.map(&:value)
result.should == [:ok] * 100
end.should_not raise_exception
end
end
Jump to Line
Something went wrong with that request. Please try again.