Revision
1293
Author
lsansonetti@apple.com
Date
2009-04-02 22:14:08 -0700 (Thu, 02 Apr 2009)

Log Message

added a spec for defined?(::Foo)

Modified Paths

Diff

Modified: MacRuby/branches/experimental/spec/frozen/language/defined_spec.rb (1292 => 1293)


--- 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"