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

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


Revision: 3403
          http://trac.macosforge.org/projects/ruby/changeset/3403
Author:   ernest.prabhakar at gmail.com
Date:     2010-02-01 17:35:45 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
Dispatch::Actor should invoke actee methods on a private serial queue

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-02 01:35:42 UTC (rev 3402)
+++ MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb	2010-02-02 01:35:45 UTC (rev 3403)
@@ -6,12 +6,13 @@
   class Actee
     def initialize(s); @s = s; end
     def current_queue; Dispatch::Queue.current; end
+    def wait(n); sleep n; end
     def to_s; @s; end
   end
   
   describe "Dispatch::Actor" do
     before :each do
-      @actee = Actee.new("my actee")
+      @actee = Actee.new("my_actee")
       @actor = Dispatch::Actor.new(@actee)
     end
     
@@ -31,7 +32,7 @@
 
     it "should invoke actee methods on a private serial queue" do
       q = @actor.current_queue
-      q.label.should =~ "queue"
+      q.label.should =~ /dispatch.actor/
     end
 
     it "should call actee Synchronously if block is NOT given" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100201/471c0a8c/attachment.html>


More information about the macruby-changes mailing list