Permalink
Browse files

add the spec for Dispatch::Source.timer which is related to #127

  • Loading branch information...
1 parent 8f1a017 commit 235d6629c05483ef17391ce484d135408201d6d9 @Watson1978 Watson1978 committed Jul 9, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/macruby/core/gcd/source_spec.rb
@@ -423,6 +423,12 @@
sleep 0.1
@count.should == 1
end
+
+ it "should not raise an exception if passed the main queue" do
+ gcdq = Dispatch::Queue.main
+ lambda { @src = Dispatch::Source.timer(0, 5, 0.1, gcdq){} }.should_not raise_error
+ end
+
end
end

0 comments on commit 235d662

Please sign in to comment.