Sha256: b62b3c9314556899bd578f241e8fa3b3ec4c211dd597ef0113013701b36acb80

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

require 'whiteboard.rb'

describe "Whiteboard" do
  it "should work at all" do
    w=Whiteboard.new
    
    t=Thread.new(w){|x|
    begin
      puts "A: #{w.get(:a).inspect}"
      w.put(:b,2)
      rescue Object=>e
      pp e
      end
    }
    sleep(0.1)
    w.put(:a,1)
    pp w.get(:b)
    t.join
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 lib/appswarm/spec/whiteboard_spec.rb