1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/bigdecimal/divide_spec.rb
2019-07-27 12:40:09 +02:00

17 lines
361 B
Ruby

require_relative '../../spec_helper'
require_relative 'shared/quo'
require 'bigdecimal'
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")
end
end
end