Revision
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

Added Paths

Diff

Modified: MacRuby/branches/experimental/spec/frozen/language/symbol_spec.rb (1271 => 1272)


--- 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 (0 => 1272)


--- 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 (0 => 1272)


--- 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