summaryrefslogtreecommitdiff
path: root/spec/ruby/library/bigdecimal/divide_spec.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2024-01-17 13:15:37 +0900
committerHiroshi SHIBATA <[email protected]>2024-01-18 07:44:13 +0900
commit4328f190eaae5fc7e15e9889a0d9e7b2b8fa56ab (patch)
treec3b9ebe87bd0007ed2484b3bdb2a7349349196ae /spec/ruby/library/bigdecimal/divide_spec.rb
parent9f729cf36a14ac47a08399aa0426343353f20b6c (diff)
spec/mspec/tool/wrap_with_guard.rb 'ruby_version_is ""..."3.4"' spec/ruby/library/bigdecimal/**/*_spec.rb
Diffstat (limited to 'spec/ruby/library/bigdecimal/divide_spec.rb')
-rw-r--r--spec/ruby/library/bigdecimal/divide_spec.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/spec/ruby/library/bigdecimal/divide_spec.rb b/spec/ruby/library/bigdecimal/divide_spec.rb
index c62b23557d..77ca878402 100644
--- a/spec/ruby/library/bigdecimal/divide_spec.rb
+++ b/spec/ruby/library/bigdecimal/divide_spec.rb
@@ -1,17 +1,20 @@
require_relative '../../spec_helper'
-require_relative 'shared/quo'
-require 'bigdecimal'
-describe "BigDecimal#/" do
- it_behaves_like :bigdecimal_quo, :/, []
+ruby_version_is ""..."3.4" do
+ require_relative 'shared/quo'
+ require 'bigdecimal'
- before :each do
- @three = BigDecimal("3")
- end
+ describe "BigDecimal#/" do
+ it_behaves_like :bigdecimal_quo, :/, []
+
+ before :each do
+ @three = BigDecimal("3")
+ end
- describe "with Rational" do
- it "produces a BigDecimal" do
- (@three / Rational(500, 2)).should == BigDecimal("0.12e-1")
+ describe "with Rational" do
+ it "produces a BigDecimal" do
+ (@three / Rational(500, 2)).should == BigDecimal("0.12e-1")
+ end
end
end
end