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"