diff options
Diffstat (limited to 'spec/ruby/library/bigdecimal/shared/clone.rb')
-rw-r--r-- | spec/ruby/library/bigdecimal/shared/clone.rb | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/spec/ruby/library/bigdecimal/shared/clone.rb b/spec/ruby/library/bigdecimal/shared/clone.rb index e58df3a94b..935ef76e7e 100644 --- a/spec/ruby/library/bigdecimal/shared/clone.rb +++ b/spec/ruby/library/bigdecimal/shared/clone.rb @@ -5,20 +5,9 @@ describe :bigdecimal_clone, shared: true do @obj = BigDecimal("1.2345") end - ruby_version_is "" ... "2.5" do - it "copies the BigDecimal's value to a newly allocated object" do - copy = @obj.public_send(@method) + it "returns self" do + copy = @obj.public_send(@method) - copy.should_not equal(@obj) - copy.should == @obj - end - end - - ruby_version_is "2.5" do - it "returns self" do - copy = @obj.public_send(@method) - - copy.should equal(@obj) - end + copy.should equal(@obj) end end |