From 1df9204331cce8c176ed359d9e6752c941320fba Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 22 Apr 2026 10:44:16 +0200 Subject: [PATCH] Remove stale Darwin hwprefs spec The darwin10 example still stubs `hwprefs_available?`, but `processor_count` no longer calls that helper. Commit 47253e9 added that fallback for old OS X 10.6 systems. Commit 50bb18b rewrote processor detection and removed the helper, so this example now covers a dead path rather than supported Ruby 3.3+ behavior. --- spec/parallel_spec.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spec/parallel_spec.rb b/spec/parallel_spec.rb index fcb330a..9978237 100644 --- a/spec/parallel_spec.rb +++ b/spec/parallel_spec.rb @@ -42,13 +42,6 @@ def without_ractor_warning(out) it "returns a number" do (1..999).should include(Parallel.processor_count) end - - if RUBY_PLATFORM =~ /darwin10/ - it 'works if hwprefs in not available' do - Parallel.should_receive(:hwprefs_available?).and_return false - (1..999).should include(Parallel.processor_count) - end - end end describe ".physical_processor_count" do