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

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 25 14:17:42 PDT 2009


Revision: 2641
          http://trac.macosforge.org/projects/ruby/changeset/2641
Author:   lsansonetti at apple.com
Date:     2009-09-25 14:17:39 -0700 (Fri, 25 Sep 2009)
Log Message:
-----------
added tempfile to the :library suite

Modified Paths:
--------------
    MacRuby/trunk/spec/frozen/library/tempfile/_close_spec.rb
    MacRuby/trunk/spec/macruby.mspec

Added Paths:
-----------
    MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/initialize_tags.txt

Removed Paths:
-------------
    MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/_close_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/close_tags.txt

Modified: MacRuby/trunk/spec/frozen/library/tempfile/_close_spec.rb
===================================================================
--- MacRuby/trunk/spec/frozen/library/tempfile/_close_spec.rb	2009-09-25 21:11:29 UTC (rev 2640)
+++ MacRuby/trunk/spec/frozen/library/tempfile/_close_spec.rb	2009-09-25 21:17:39 UTC (rev 2641)
@@ -5,10 +5,18 @@
   before(:each) do
     @tempfile = Tempfile.new("specs")
   end
-  
-  it "is protected" do
-    @tempfile.protected_methods.should include("_close")
+
+  ruby_version_is "" ... "1.9" do  
+    it "is protected" do
+      @tempfile.protected_methods.should include("_close")
+    end
   end
+
+  ruby_version_is "1.9" do  
+    it "is protected" do
+      @tempfile.protected_methods.should include(:_close)
+    end
+  end
   
   it "closes self" do
     @tempfile.send(:_close)

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/_close_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/_close_tags.txt	2009-09-25 21:11:29 UTC (rev 2640)
+++ MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/_close_tags.txt	2009-09-25 21:17:39 UTC (rev 2641)
@@ -1 +0,0 @@
-fails:Tempfile#_close is protected

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/close_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/close_tags.txt	2009-09-25 21:11:29 UTC (rev 2640)
+++ MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/close_tags.txt	2009-09-25 21:17:39 UTC (rev 2641)
@@ -1,4 +0,0 @@
-fails:Tempfile#close when passed [true] closes self
-fails:Tempfile#close when passed [true] unlinks self
-fails:Tempfile#close! closes self
-fails:Tempfile#close! unlinks self

Added: MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/initialize_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/initialize_tags.txt	                        (rev 0)
+++ MacRuby/trunk/spec/frozen/tags/macruby/library/tempfile/initialize_tags.txt	2009-09-25 21:17:39 UTC (rev 2641)
@@ -0,0 +1 @@
+fails:Tempfile#initialize sets the permisssions on the tempfile to 0600

Modified: MacRuby/trunk/spec/macruby.mspec
===================================================================
--- MacRuby/trunk/spec/macruby.mspec	2009-09-25 21:11:29 UTC (rev 2640)
+++ MacRuby/trunk/spec/macruby.mspec	2009-09-25 21:17:39 UTC (rev 2641)
@@ -8,7 +8,7 @@
   # Core library specs
   set :core, [
     'core',
-    
+
     # obsolete in 1.9
     '^core/continuation',
     '^core/kernel/callcc_spec.rb',
@@ -36,6 +36,7 @@
     'library/stringscanner',
     'library/stringio',
     'library/time',
+    'library/tempfile',
     'library/tmpdir',
     'library/yaml/dump_spec.rb',
     'library/yaml/load_documents_spec.rb',
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090925/077dd632/attachment-0001.html>


More information about the macruby-changes mailing list