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/shared/clone.rb

14 lines
222 B
Ruby
Raw Normal View History

2019-05-28 22:41:48 +02:00
require 'bigdecimal'
describe :bigdecimal_clone, shared: true do
before :each do
@obj = BigDecimal("1.2345")
end
it "returns self" do
copy = @obj.public_send(@method)
2019-05-28 22:41:48 +02:00
copy.should equal(@obj)
2019-05-28 22:41:48 +02:00
end
end