summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/dedup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/dedup_spec.rb')
-rw-r--r--spec/ruby/core/string/dedup_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/ruby/core/string/dedup_spec.rb b/spec/ruby/core/string/dedup_spec.rb
index 57d2be2cfd..940f07668e 100644
--- a/spec/ruby/core/string/dedup_spec.rb
+++ b/spec/ruby/core/string/dedup_spec.rb
@@ -1,8 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'shared/dedup'
describe 'String#dedup' do
- ruby_version_is '3.2' do
- it_behaves_like :string_dedup, :dedup
+ it "is an alias of String#-@" do
+ String.instance_method(:dedup).should == String.instance_method(:-@)
end
end