Revision: 1091 http://trac.macosforge.org/projects/ruby/changeset/1091 Author: eloy.de.enige@gmail.com Date: 2009-03-23 01:26:45 -0700 (Mon, 23 Mar 2009) Log Message: ----------- Use ruby_version_is guards for simple api differences between 1.8 and 1.9 as was the case with the module specs. Modified Paths: -------------- MacRuby/branches/experimental/spec/frozen/language/module_spec.rb Removed Paths: ------------- MacRuby/branches/experimental/spec/frozen/language/versions/module_1.8.rb MacRuby/branches/experimental/spec/frozen/language/versions/module_1.9.rb Modified: MacRuby/branches/experimental/spec/frozen/language/module_spec.rb =================================================================== --- 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 =================================================================== --- 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 =================================================================== --- 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
participants (1)
-
source_changes@macosforge.org