mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
17 lines
361 B
Ruby
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
|