1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-09-17 11:42:26 +02:00
parent ce888bfa23
commit 3f6c0a6d74
27 changed files with 296 additions and 134 deletions

View file

@ -69,4 +69,11 @@ describe 'String#-@' do
(-dynamic).should equal(-"this string is frozen".freeze)
end
end
ruby_version_is "3.0" do
it "interns the provided string if it is frozen" do
dynamic = "this string is unique and frozen #{rand}".freeze
(-dynamic).should equal(dynamic)
end
end
end