summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/shared/dedup.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/shared/dedup.rb')
-rw-r--r--spec/ruby/core/string/shared/dedup.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/ruby/core/string/shared/dedup.rb b/spec/ruby/core/string/shared/dedup.rb
index 6ffcb9b045..97b5df6ed1 100644
--- a/spec/ruby/core/string/shared/dedup.rb
+++ b/spec/ruby/core/string/shared/dedup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
describe :string_dedup, shared: true do
it 'returns self if the String is frozen' do
input = 'foo'.freeze
@@ -48,10 +49,8 @@ describe :string_dedup, shared: true do
dynamic.send(@method).should equal(dynamic)
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.send(@method).should equal(dynamic)
- end
+ it "interns the provided string if it is frozen" do
+ dynamic = "this string is unique and frozen #{rand}".freeze
+ dynamic.send(@method).should equal(dynamic)
end
end