Revision: 1272 http://trac.macosforge.org/projects/ruby/changeset/1272 Author: eloy.de.enige@gmail.com Date: 2009-03-30 15:23:43 -0700 (Mon, 30 Mar 2009) Log Message: ----------- Fixed 1.8 compile failure in the 'symbol' spec. Modified Paths: -------------- MacRuby/branches/experimental/spec/frozen/language/symbol_spec.rb Added Paths: ----------- MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.8.rb MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.9.rb Modified: MacRuby/branches/experimental/spec/frozen/language/symbol_spec.rb =================================================================== --- MacRuby/branches/experimental/spec/frozen/language/symbol_spec.rb 2009-03-30 20:42:51 UTC (rev 1271) +++ MacRuby/branches/experimental/spec/frozen/language/symbol_spec.rb 2009-03-30 22:23:43 UTC (rev 1272) @@ -49,20 +49,6 @@ c.inspect.should == ':Foo__9' end - ruby_version_is "" ... "1.9" do - it "must not be an empty string" do - lambda { eval ":''" }.should raise_error(SyntaxError) - end - end - - ruby_version_is "1.9" do - it "can be an empty string" do - c = :'' - c.class.should == Symbol - c.inspect.should == ':""' - end - end - it "can be created by the %s-delimited expression" do a, b = :'foo bar', %s{foo bar} b.class.should == Symbol @@ -80,3 +66,5 @@ } end end + +language_version __FILE__, 'symbol' \ No newline at end of file Added: MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.8.rb =================================================================== --- MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.8.rb (rev 0) +++ MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.8.rb 2009-03-30 22:23:43 UTC (rev 1272) @@ -0,0 +1,5 @@ +describe "A Symbol literal" do + it "must not be an empty string" do + lambda { eval ":''" }.should raise_error(SyntaxError) + end +end \ No newline at end of file Added: MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.9.rb =================================================================== --- MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.9.rb (rev 0) +++ MacRuby/branches/experimental/spec/frozen/language/versions/symbol_1.9.rb 2009-03-30 22:23:43 UTC (rev 1272) @@ -0,0 +1,7 @@ +describe "A Symbol literal" do + it "can be an empty string" do + c = :'' + c.class.should == Symbol + c.inspect.should == ':""' + end +end \ No newline at end of file