From 6af6aa6e1e073cd8d69d5a5e093a5e9aaad9855b Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 16 Oct 2021 13:41:21 +0200 Subject: [PATCH] Move Set spec since it is the behavior of Set#initialize_clone --- library/set/{clone_spec.rb => initialize_clone_spec.rb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename library/set/{clone_spec.rb => initialize_clone_spec.rb} (74%) diff --git a/library/set/clone_spec.rb b/library/set/initialize_clone_spec.rb similarity index 74% rename from library/set/clone_spec.rb rename to library/set/initialize_clone_spec.rb index 3cd4932ea3..fda3f050ea 100644 --- a/library/set/clone_spec.rb +++ b/library/set/initialize_clone_spec.rb @@ -1,9 +1,9 @@ require_relative '../../spec_helper' require 'set' -describe "Set#clone" do +describe "Set#initialize_clone" do ruby_version_is "3.0" do - it "does not freeze the new Set" do + it "does not freeze the new Set when called from clone(freeze: false)" do set1 = Set[1, 2] set1.freeze set2 = set1.clone(freeze: false)