[macruby-changes] [1446] MacRuby/branches/experimental/spec/frozen/language/file_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 22 15:08:22 PDT 2009
Revision: 1446
http://trac.macosforge.org/projects/ruby/changeset/1446
Author: eloy.de.enige at gmail.com
Date: 2009-04-22 15:08:22 -0700 (Wed, 22 Apr 2009)
Log Message:
-----------
Add full path require test for __FILE__
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/language/file_spec.rb
Modified: MacRuby/branches/experimental/spec/frozen/language/file_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/file_spec.rb 2009-04-22 22:08:12 UTC (rev 1445)
+++ MacRuby/branches/experimental/spec/frozen/language/file_spec.rb 2009-04-22 22:08:22 UTC (rev 1446)
@@ -16,6 +16,12 @@
require path
ScratchPad.recorded.should == File.join(".",path)
end
+
+ it "equals the full path when required using a full path" do
+ path = fixture(__FILE__, "file.rb")
+ require path
+ ScratchPad.recorded.should == path
+ end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090422/b7aa0568/attachment.html>
More information about the macruby-changes
mailing list