diff --git a/core/string/shared/to_sym.rb b/core/string/shared/to_sym.rb index fbb15b8681..da14073499 100644 --- a/core/string/shared/to_sym.rb +++ b/core/string/shared/to_sym.rb @@ -7,9 +7,11 @@ "abc=".send(@method).should == :abc= end - it "special cases +(binary) and -(binary)" do - "+(binary)".to_sym.should == :+ - "-(binary)".to_sym.should == :- + ruby_version_is ""..."1.9" do + it "special cases +(binary) and -(binary)" do + "+(binary)".to_sym.should == :+ + "-(binary)".to_sym.should == :- + end end ruby_version_is ""..."1.9" do