Sha256: 51c6ab4b4463c8a3228f02d865613205941bdc93f54c5030fbee1639165212c4
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
require 'spec_helper' require 'futuroscope/convenience' require 'timeout' describe "Kernel#future" do it "adds a convenience method to ruby's kernel" do x = future{ sleep(1); 1 } y = future{ sleep(1); 2 } z = future{ sleep(1); 3 } Timeout::timeout(1.5) do expect(x + y + z).to eq(6) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
futuroscope-0.0.1 | spec/futuroscope/convenience_spec.rb |