Sha256: 1916be20098659f90bd14de6b36a4fb87fcbb796a892374ea71a2d9861266e43

Contents?: true

Size: 189 Bytes

Versions: 12

Compression:

Stored size: 189 Bytes

Contents

#! /usr/bin/env ruby
require 'rubygems'
require 'thread/delay'

describe Thread::Delay do
	it 'delivers a value properly' do
		d = Thread.delay {
			42
		}

		d.value.should == 42
	end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
thread-0.1.4 tests/delay_spec.rb
thread-0.1.3 tests/delay_spec.rb
thread-0.1.2 tests/delay_spec.rb
vinted-thread-0.1.1 tests/delay_spec.rb
thread-0.1.1 tests/delay_spec.rb
thread-0.1.0 tests/delay_spec.rb
thread-0.0.8.1 tests/delay_spec.rb
thread-0.0.8 tests/delay_spec.rb
thread-0.0.7 tests/delay_spec.rb
thread-0.0.6.2 tests/delay_spec.rb
thread-0.0.6.1 tests/delay_spec.rb
thread-0.0.6 tests/delay_spec.rb