From af24e7f95796a450ecd94982e83d9e64fa328a97 Mon Sep 17 00:00:00 2001 From: Herwin Date: Tue, 6 Jan 2026 15:42:52 +0100 Subject: [PATCH] Remove test for require 'set' from Range#to_set specs --- core/range/to_set_spec.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/range/to_set_spec.rb b/core/range/to_set_spec.rb index 589c0e9ae..a57767c64 100644 --- a/core/range/to_set_spec.rb +++ b/core/range/to_set_spec.rb @@ -44,12 +44,4 @@ }.should raise_error(ArgumentError, 'wrong number of arguments (given 1, expected 0)') end end - - it "does not need explicit `require 'set'`" do - output = ruby_exe(<<~RUBY, options: '--disable-gems', args: '2>&1') - puts (1..3).to_set.to_a.inspect - RUBY - - output.chomp.should == "[1, 2, 3]" - end end