Modified: MacRuby/trunk/spec/macruby/library/dispatch/actor_spec.rb (3402 => 3403)
--- 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