[macruby-changes] [3103] MacRuby/trunk/spec/macruby/core/gcd/group_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Dec 11 08:55:48 PST 2009
Revision: 3103
http://trac.macosforge.org/projects/ruby/changeset/3103
Author: ernest.prabhakar at 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:
--------------
MacRuby/trunk/spec/macruby/core/gcd/group_spec.rb
Modified: MacRuby/trunk/spec/macruby/core/gcd/group_spec.rb
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091211/2f1e6f13/attachment.html>
More information about the macruby-changes
mailing list