aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/integer/integer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/integer_spec.rb')
-rw-r--r--spec/ruby/core/integer/integer_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/integer/integer_spec.rb b/spec/ruby/core/integer/integer_spec.rb
index a6f406cba0..393f072563 100644
--- a/spec/ruby/core/integer/integer_spec.rb
+++ b/spec/ruby/core/integer/integer_spec.rb
@@ -4,6 +4,13 @@ describe "Integer" do
it "includes Comparable" do
Integer.include?(Comparable).should == true
end
+
+ ruby_version_is "2.4" do
+ it "is the class of both small and large integers" do
+ 42.class.should equal(Integer)
+ bignum_value.class.should equal(Integer)
+ end
+ end
end
describe "Integer#integer?" do