summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/library/bigdecimal/constants_spec.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/ruby/library/bigdecimal/constants_spec.rb b/spec/ruby/library/bigdecimal/constants_spec.rb
index 1e08c6779b..1eb24d85cb 100644
--- a/spec/ruby/library/bigdecimal/constants_spec.rb
+++ b/spec/ruby/library/bigdecimal/constants_spec.rb
@@ -9,13 +9,9 @@ describe "BigDecimal constants" do
end
it "has a BASE value" do
- platform_is wordsize: 64 do
- BigDecimal::BASE.should == 1000000000
- end
-
- platform_is wordsize: 32 do
- BigDecimal::BASE.should == 10000
- end
+ # The actual one is decided based on HAVE_INT64_T in MRI,
+ # which is hard to check here.
+ [10000, 1000000000].should include(BigDecimal::BASE)
end
it "has a NaN value" do