Skip to content

Commit

Permalink
add the spec for Dispatch::Source.timer which is related to #127
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jul 9, 2012
1 parent 8f1a017 commit 235d662
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/macruby/core/gcd/source_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit 235d662

Please sign in to comment.