summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/dup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/dup_spec.rb')
-rw-r--r--spec/ruby/core/integer/dup_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/core/integer/dup_spec.rb b/spec/ruby/core/integer/dup_spec.rb
new file mode 100644
index 0000000000..f46bdf89bd
--- /dev/null
+++ b/spec/ruby/core/integer/dup_spec.rb
@@ -0,0 +1,10 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+
+ruby_version_is '2.4' do
+ describe "Integer#dup" do
+ it "returns self" do
+ int = 2
+ int.dup.should equal(int)
+ end
+ end
+end