summaryrefslogtreecommitdiff
path: root/spec/ruby/core/struct/dup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/struct/dup_spec.rb')
-rw-r--r--spec/ruby/core/struct/dup_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/ruby/core/struct/dup_spec.rb b/spec/ruby/core/struct/dup_spec.rb
index cb54b7ceee..8b50c39014 100644
--- a/spec/ruby/core/struct/dup_spec.rb
+++ b/spec/ruby/core/struct/dup_spec.rb
@@ -1,8 +1,11 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
+require_relative 'shared/dup'
describe "Struct-based class#dup" do
+ it_behaves_like :struct_dup, :dup
+
# From https://github.com/jruby/jruby/issues/3686
it "retains an included module in the ancestor chain for the struct's singleton class" do
klass = Struct.new(:foo)