From f7b210ed89037a1998e7e202f2c0e47c84fb2ab0 Mon Sep 17 00:00:00 2001 From: AI-Mozi Date: Sat, 24 Aug 2024 18:45:10 +0200 Subject: [PATCH] Fix `System.downloader` specs --- spec/system_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/system_spec.rb b/spec/system_spec.rb index f00b975..5929a9d 100644 --- a/spec/system_spec.rb +++ b/spec/system_spec.rb @@ -98,6 +98,8 @@ end context "otherwise" do + before { expect(subject).to receive(:os).and_return(:linux) } + context "when both wget and curl are installed" do before do expect(subject).to receive(:installed?).with('wget').and_return(true)