Revision
3611
Author
ernest.prabhakar@gmail.com
Date
2010-02-24 16:37:41 -0800 (Wed, 24 Feb 2010)

Log Message

Change Dispatch::Source specs to use mspec tmp for temporary files

Modified Paths

Diff

Modified: MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb (3610 => 3611)


--- MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb	2010-02-25 00:24:52 UTC (rev 3610)
+++ MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb	2010-02-25 00:37:41 UTC (rev 3611)
@@ -214,7 +214,7 @@
       describe "file:" do
         before :each do
           @msg = "#{$$}: #{Time.now}"
-          @filename = "/var/tmp/gcd_spec_source-#{$$}-#{Time.now}"
+          @filename = tmp "gcd_spec_source-#{$$}-#{Time.now}"
           @file = nil
           @src = nil
         end

Modified: MacRuby/trunk/spec/macruby/library/dispatch/source_spec.rb (3610 => 3611)


--- MacRuby/trunk/spec/macruby/library/dispatch/source_spec.rb	2010-02-25 00:24:52 UTC (rev 3610)
+++ MacRuby/trunk/spec/macruby/library/dispatch/source_spec.rb	2010-02-25 00:37:41 UTC (rev 3611)
@@ -3,7 +3,7 @@
 
 if MACOSX_VERSION >= 10.6
 
-  describe "Dispatch::Queue source from" do
+  describe "Dispatch::Source" do
     before :each do
       @q = Dispatch::Queue.new('org.macruby.gcd_spec.prelude')
       @src = nil
@@ -69,7 +69,7 @@
     describe "vnode" do
       before :each do
         @msg = "#{$$}-#{Time.now}"
-        @filename = "/var/tmp/gcd_spec_source-#{@msg}"
+        @filename = tmp("gcd_spec_source-#{@msg}")
         @file = nil
         @src = nil
       end

Modified: MacRuby/trunk/spec/macruby/tags/macruby/library/dispatch/source_tags.txt (3610 => 3611)


--- MacRuby/trunk/spec/macruby/tags/macruby/library/dispatch/source_tags.txt	2010-02-25 00:24:52 UTC (rev 3610)
+++ MacRuby/trunk/spec/macruby/tags/macruby/library/dispatch/source_tags.txt	2010-02-25 00:37:41 UTC (rev 3611)
@@ -1,3 +1,3 @@
-fails:Dispatch::Source from process fires with data indicating which process event(s)
-fails:Dispatch::Source from signal fires with data on how often the process was signaled
-fails:Dispatch::Source from vnode file fires with data indicating which file event(s)
+fails:Dispatch::Source process fires with data indicating which process event(s)
+fails:Dispatch::Source signal fires with data on how often the process was signaled
+fails:Dispatch::Source vnode file fires with data indicating which file event(s)