Diff
Modified: MacRuby/branches/experimental/spec/frozen/language/module_spec.rb (1089 => 1090)
--- MacRuby/branches/experimental/spec/frozen/language/module_spec.rb 2009-03-23 07:46:41 UTC (rev 1089)
+++ MacRuby/branches/experimental/spec/frozen/language/module_spec.rb 2009-03-23 08:18:54 UTC (rev 1090)
@@ -13,10 +13,9 @@
end
it "gets a name when assigned to a constant" do
- m = Module.new
LangModuleSpec::Anon = Module.new
-
- m.name.should == ""
LangModuleSpec::Anon.name.should == "LangModuleSpec::Anon"
end
end
+
+language_version __FILE__, "module"
\ No newline at end of file
Added: MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb (0 => 1090)
--- MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb 2009-03-23 08:18:54 UTC (rev 1090)
@@ -0,0 +1,6 @@
+describe "An anonymous module" do
+ it "returns an empty string as its name" do
+ m = Module.new
+ m.name.should == ""
+ end
+end
\ No newline at end of file
Added: MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb (0 => 1090)
--- MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb 2009-03-23 08:18:54 UTC (rev 1090)
@@ -0,0 +1,6 @@
+describe "An anonymous module" do
+ it "has no name" do
+ m = Module.new
+ m.name.should == nil
+ end
+end
\ No newline at end of file