Diff
Modified: MacRuby/branches/experimental/spec/frozen/language/module_spec.rb (1090 => 1091)
--- MacRuby/branches/experimental/spec/frozen/language/module_spec.rb 2009-03-23 08:18:54 UTC (rev 1090)
+++ MacRuby/branches/experimental/spec/frozen/language/module_spec.rb 2009-03-23 08:26:45 UTC (rev 1091)
@@ -18,4 +18,18 @@
end
end
-language_version __FILE__, "module"
\ No newline at end of file
+describe "An anonymous module" do
+ ruby_version_is "" ... "1.9" do
+ it "returns an empty string for its name" do
+ m = Module.new
+ m.name.should == ""
+ end
+ end
+
+ ruby_version_is "1.9" do
+ it "returns nil for its name" do
+ m = Module.new
+ m.name.should == nil
+ end
+ end
+end
Deleted: MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb (1090 => 1091)
--- MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb 2009-03-23 08:18:54 UTC (rev 1090)
+++ MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb 2009-03-23 08:26:45 UTC (rev 1091)
@@ -1,6 +0,0 @@
-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
Deleted: MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb (1090 => 1091)
--- MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb 2009-03-23 08:18:54 UTC (rev 1090)
+++ MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb 2009-03-23 08:26:45 UTC (rev 1091)
@@ -1,6 +0,0 @@
-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