[macruby-changes] [3225] MacRuby/trunk/spec/macruby

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 8 17:47:18 PST 2010


Revision: 3225
          http://trac.macosforge.org/projects/ruby/changeset/3225
Author:   ernest.prabhakar at gmail.com
Date:     2010-01-08 17:47:17 -0800 (Fri, 08 Jan 2010)
Log Message:
-----------
Fixed Dispatch::Source::SIGNAL

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	2010-01-09 01:47:16 UTC (rev 3224)
+++ MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb	2010-01-09 01:47:17 UTC (rev 3225)
@@ -151,10 +151,11 @@
       describe :SIGNAL do
         before :each do
           @type = Dispatch::Source::SIGNAL
+          @signal = Signal.list["USR2"]
         end
 
         it "returns an instance of Dispatch::Source" do
-          src = Dispatch::Source.new(@type, $$, 0, @q) { }
+          src = Dispatch::Source.new(@type, @signal, 0, @q) { }
           src.should be_kind_of(Dispatch::Source)
         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	2010-01-09 01:47:16 UTC (rev 3224)
+++ MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt	2010-01-09 01:47:17 UTC (rev 3225)
@@ -1 +0,0 @@
-fails:Dispatch::Source of type SIGNAL returns an instance of Dispatch::Source
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100108/96852664/attachment.html>


More information about the macruby-changes mailing list