summaryrefslogtreecommitdiff
path: root/spec/ruby/core/bignum/bignum_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/bignum/bignum_spec.rb')
-rw-r--r--spec/ruby/core/bignum/bignum_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/ruby/core/bignum/bignum_spec.rb b/spec/ruby/core/bignum/bignum_spec.rb
index cf99bb4937..3df43aec2d 100644
--- a/spec/ruby/core/bignum/bignum_spec.rb
+++ b/spec/ruby/core/bignum/bignum_spec.rb
@@ -16,4 +16,16 @@ describe "Bignum" do
Bignum.new
end.should raise_error(NoMethodError)
end
+
+ ruby_version_is '2.4' do
+ it "unified into Integer" do
+ Bignum.should equal(Integer)
+ end
+
+ it "is deprecated" do
+ -> {
+ Bignum
+ }.should complain(/constant ::Bignum is deprecated/)
+ end
+ end
end