Revision
3103
Author
ernest.prabhakar@gmail.com
Date
2009-12-11 08:55:48 -0800 (Fri, 11 Dec 2009)

Log Message

Changed Dispatch::Group spec to match Ruby idiom for true/false, all specs pass

Modified Paths

Diff

Modified: MacRuby/trunk/spec/macruby/core/gcd/group_spec.rb (3102 => 3103)


--- MacRuby/trunk/spec/macruby/core/gcd/group_spec.rb	2009-12-11 08:58:07 UTC (rev 3102)
+++ MacRuby/trunk/spec/macruby/core/gcd/group_spec.rb	2009-12-11 16:55:48 UTC (rev 3103)
@@ -38,13 +38,13 @@
         @i.should == 42
       end
 
-      it "will return non-zero if it times out" do
+      it "will return false if it times out" do
         @q.async(@g) {sleep 1}
-        @g.wait(0.2).should_not == 0
+        @g.wait(0.2).should == false
       end
 
-      it "will return zero if succeeds" do
-        @g.wait(Dispatch::TIME_FOREVER).should == 0
+      it "will return true if it succeeds" do
+        @g.wait(Dispatch::TIME_FOREVER).should == true
       end
 
     end