[macruby-changes] [3400] MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 1 17:35:33 PST 2010


Revision: 3400
          http://trac.macosforge.org/projects/ruby/changeset/3400
Author:   ernest.prabhakar at gmail.com
Date:     2010-02-01 17:35:32 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
Initial skeleton for Dispatch::Actor

Modified Paths:
--------------
    MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb

Modified: MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb	2010-02-01 22:35:19 UTC (rev 3399)
+++ MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb	2010-02-02 01:35:32 UTC (rev 3400)
@@ -3,8 +3,58 @@
 
 if MACOSX_VERSION >= 10.6
   describe "Dispatch::Actor" do
-    it "should do something" do
+    before :each do
+      @actee = "me"
+      @actor = Dispatch::Actor.new(@actee)
+    end
+    
+    it "should return an Actor when called with an actee" do
       true.should == true
     end
+
+    it "should undef most of its inherited methods" do
+      true.should == true
+    end
+
+    it "should NOT undef missing_method or object-id" do
+      true.should == true
+    end
+
+    it "should invoke actee methods on a private serial queue" do
+      true.should == true
+    end
+
+    it "should call actee Synchronously if block is NOT given" do
+      true.should == true
+    end
+
+    it "should call actee Asynchronously if block IS given" do
+      true.should == true
+    end
+
+    it "should used default callback when called Asynchronously" do
+      true.should == true
+    end
+
+    it "should use callback queue specified by _on, but only once" do
+      true.should == true
+    end
+
+    it "should invoke actee once with group specified by _with" do
+      true.should == true
+    end
+
+    it "should invoke actee Asynchronously when group specified by _with" do
+      true.should == true
+    end
+
+    it "should return actee when called with _done" do
+      true.should == true
+    end
+
+    it "should return an actor for Dispatch.wrap" do
+      true.should == true
+    end
+
   end
 end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100201/2968509d/attachment.html>


More information about the macruby-changes mailing list