Revision
3400
Author
ernest.prabhakar@gmail.com
Date
2010-02-01 17:35:32 -0800 (Mon, 01 Feb 2010)

Log Message

Initial skeleton for Dispatch::Actor

Modified Paths

Diff

Modified: MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb (3399 => 3400)


--- 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