[macruby-changes] [1452] MacRuby/branches/experimental/spec/frozen/library/stringio/path_spec .rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 22 15:09:33 PDT 2009


Revision: 1452
          http://trac.macosforge.org/projects/ruby/changeset/1452
Author:   eloy.de.enige at gmail.com
Date:     2009-04-22 15:09:33 -0700 (Wed, 22 Apr 2009)
Log Message:
-----------
StringIO#path is undefined in Ruby 1.9.2.

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/library/stringio/path_spec.rb

Modified: MacRuby/branches/experimental/spec/frozen/library/stringio/path_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/library/stringio/path_spec.rb	2009-04-22 22:09:23 UTC (rev 1451)
+++ MacRuby/branches/experimental/spec/frozen/library/stringio/path_spec.rb	2009-04-22 22:09:33 UTC (rev 1452)
@@ -2,7 +2,15 @@
 require File.dirname(__FILE__) + '/fixtures/classes'
 
 describe "StringIO#path" do
-  it "returns nil" do
-    StringIO.new("path").path.should be_nil
+  ruby_version_is "" ... "1.9.2" do
+    it "returns nil" do
+      StringIO.new("path").path.should be_nil
+    end
   end
+
+  ruby_version_is "1.9.2" do
+    it "is not defined" do
+      lambda { StringIO.new("path").path }.should raise_error(NoMethodError)
+    end
+  end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090422/ae9a30e2/attachment.html>


More information about the macruby-changes mailing list