[macruby-changes] [1454] MacRuby/branches/experimental/spec/frozen/core/file/path_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 22 15:09:55 PDT 2009
Revision: 1454
http://trac.macosforge.org/projects/ruby/changeset/1454
Author: eloy.de.enige at gmail.com
Date: 2009-04-22 15:09:54 -0700 (Wed, 22 Apr 2009)
Log Message:
-----------
Add spec for Ruby 1.9's File.path.
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/file/path_spec.rb
Modified: MacRuby/branches/experimental/spec/frozen/core/file/path_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/file/path_spec.rb 2009-04-22 22:09:44 UTC (rev 1453)
+++ MacRuby/branches/experimental/spec/frozen/core/file/path_spec.rb 2009-04-22 22:09:54 UTC (rev 1454)
@@ -16,3 +16,15 @@
File.open(@file2, 'w'){|file| file.path.should == tmp("../tmp/xxx")}
end
end
+
+describe "File.path" do
+ before :each do
+ @file1 = tmp("../tmp/xxx")
+ end
+
+ ruby_version_is "1.9.1" do
+ it "returns the full path for the given file" do
+ File.path(@file1).should == tmp("../tmp/xxx")
+ end
+ end
+end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090422/34679282/attachment.html>
More information about the macruby-changes
mailing list