summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2019-11-05 17:30:54 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-11-05 17:30:54 +0900
commitbea322a352d820007dd4e6cab88af5de01854736 (patch)
tree64cbb4819408cab7e7afe1961eed1c4308e405c0 /spec
parent853d91a04a4d133fc90b35c90570dc1c656a7922 (diff)
Revert "[EXPERIMENTAL] Make Symbol#to_s return a frozen String [Feature #16150]"
This reverts commit 6ffc045a817fbdf04a6945d3c260b55b0fa1fd1e.
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/symbol/shared/id2name.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/ruby/core/symbol/shared/id2name.rb b/spec/ruby/core/symbol/shared/id2name.rb
index a0e190a680..47f97bd332 100644
--- a/spec/ruby/core/symbol/shared/id2name.rb
+++ b/spec/ruby/core/symbol/shared/id2name.rb
@@ -6,21 +6,4 @@ describe :symbol_id2name, shared: true do
:@ruby.send(@method).should == "@ruby"
:@@ruby.send(@method).should == "@@ruby"
end
-
- ruby_version_is "2.7" do
- it "returns a frozen String" do
- :my_symbol.to_s.frozen?.should == true
- :"dynamic symbol #{6 * 7}".to_s.frozen?.should == true
- end
-
- it "always returns the same String for a given Symbol" do
- s1 = :my_symbol.to_s
- s2 = :my_symbol.to_s
- s1.should equal(s2)
-
- s1 = :"dynamic symbol #{6 * 7}".to_s
- s2 = :"dynamic symbol #{2 * 3 * 7}".to_s
- s1.should equal(s2)
- end
- end
end