[macruby-changes] [3153] MacRuby/trunk/spec/macruby
source_changes at macosforge.org
source_changes at macosforge.org
Tue Dec 22 16:42:40 PST 2009
Revision: 3153
http://trac.macosforge.org/projects/ruby/changeset/3153
Author: ernest.prabhakar at gmail.com
Date: 2009-12-22 16:42:40 -0800 (Tue, 22 Dec 2009)
Log Message:
-----------
Cleaned out old Dispatch::Source specs, added Dispatch::Timer
Modified Paths:
--------------
MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb
MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt
Modified: MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb 2009-12-23 00:25:33 UTC (rev 3152)
+++ MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb 2009-12-23 00:42:40 UTC (rev 3153)
@@ -58,15 +58,21 @@
Dispatch::Source.new(Dispatch::Source::WRITE, 0, 0, @q) {}.should
be_kind_of(Dispatch::Source)
end
+
+ it "can create a Timer " do
+ Dispatch::Timer.new(@q, nil, 0) {}.should
+ be_kind_of(Dispatch::Source)
+ end
+ it "raises an ArgumentError if no block is given" do
+ lambda { Dispatch::Source.new(Dispatch::Source::DATA_ADD, 0, 0, @q)
+ }.should raise_error(ArgumentError)
+ end
+
end
describe "event handler" do
- it "can be set" do
- true.should == false
- end
-
it "will be invoked" do
true.should == false
end
@@ -93,22 +99,6 @@
end
- describe "cancel handler" do
- before :each do
- @q = Dispatch::Queue.concurrent
- @src = Dispatch::Source.new() #@type, @handle, mask, @q
- end
-
- it "can be set" do
- true.should == false
- end
-
- it "will be invoked" do
- true.should == false
- end
- end
-
-
end
end
Modified: MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt
===================================================================
--- MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt 2009-12-23 00:25:33 UTC (rev 3152)
+++ MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt 2009-12-23 00:42:40 UTC (rev 3153)
@@ -1,9 +1,6 @@
-fails:Dispatch::Source event handler can be set
fails:Dispatch::Source event handler will be invoked
fails:Dispatch::Source event handler receives the source
fails:Dispatch::Source event handler can get data
fails:Dispatch::Source event handler will get merged data
fails:Dispatch::Source event handler can get handle
fails:Dispatch::Source event handler can get mask
-fails:Dispatch::Source cancel handler can be set
-fails:Dispatch::Source cancel handler will be invoked
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091222/a3efd6ea/attachment.html>
More information about the macruby-changes
mailing list