From b67f5b53396220520a1fe9b85ec7722a35f22380 Mon Sep 17 00:00:00 2001 From: Chikanaga Tomoyuki Date: Fri, 25 Oct 2013 00:25:22 +0900 Subject: [PATCH] No more special treadment for "+(binary)" and "-(binary)" on to_sym. --- core/string/shared/to_sym.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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