spec/dcell/actor_proxy_spec.rb in dcell-0.13.0 vs spec/dcell/actor_proxy_spec.rb in dcell-0.14.0

- old
+ new

@@ -24,9 +24,17 @@ it "makes synchronous calls to remote actors" do @remote_actor.value.should == 42 end + it "handles blocks" do + result = nil + @remote_actor.win do |value| + result = value + end + result.should == 10000 + end + it "makes future calls to remote actors" do @remote_actor.future(:value).value.should == 42 end context :linking do