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