Skip to content

Commit

Permalink
Move Set spec since it is the behavior of Set#initialize_clone
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 16, 2021
1 parent 6ffa571 commit 6af6aa6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 6af6aa6

Please sign in to comment.