[macruby-changes] [1293] MacRuby/branches/experimental/spec/frozen/language/defined_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 2 22:14:09 PDT 2009


Revision: 1293
          http://trac.macosforge.org/projects/ruby/changeset/1293
Author:   lsansonetti at apple.com
Date:     2009-04-02 22:14:08 -0700 (Thu, 02 Apr 2009)
Log Message:
-----------
added a spec for defined?(::Foo)

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/language/defined_spec.rb

Modified: MacRuby/branches/experimental/spec/frozen/language/defined_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/defined_spec.rb	2009-04-03 05:12:06 UTC (rev 1292)
+++ MacRuby/branches/experimental/spec/frozen/language/defined_spec.rb	2009-04-03 05:14:08 UTC (rev 1293)
@@ -138,6 +138,11 @@
     ret.should == "constant"
   end
 
+  it "returns 'constant' when defined?(::File) is sent" do
+    ret = defined?(::File)
+    ret.should == "constant"
+  end
+
   it "returns 'constant' when defined?(File::SEPARATOR) is sent" do
     ret = defined?(File::SEPARATOR)
     ret.should == "constant"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090402/59572774/attachment.html>


More information about the macruby-changes mailing list