From 72721777259b86e7b9f14e1cf9961e966b94f6e2 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Thu, 16 Jul 2020 10:08:04 +0200 Subject: [PATCH] fix name also in tests --- test/inst_functions_test.rb | 4 ++-- test/inst_update_installer_test.rb | 2 +- test/lib/update_repositories_finder_test.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/inst_functions_test.rb b/test/inst_functions_test.rb index 85dcdea0d..f7becb955 100755 --- a/test/inst_functions_test.rb +++ b/test/inst_functions_test.rb @@ -270,7 +270,7 @@ def stub_secondstage(bool) .and_return(self_update_in_cmdline) allow(subject).to receive(:self_update_in_cmdline?) .and_return(self_update_in_cmdline) - allow(Yast::AutoinstGeneral).to receive(:self_update?).and_return(nil) + allow(Yast::AutoinstGeneral).to receive(:self_update).and_return(nil) end context "when self_update=1 is provided by linuxrc" do @@ -290,7 +290,7 @@ def stub_secondstage(bool) context "when self_update is explicitly enabled in an AutoYaST profile" do it "returns true" do allow(Yast::Mode).to receive("auto").and_return(true) - allow(Yast::AutoinstGeneral).to receive(:self_update?).and_return(true) + allow(Yast::AutoinstGeneral).to receive(:self_update).and_return(true) expect(subject.self_update_explicitly_enabled?).to eq true end diff --git a/test/inst_update_installer_test.rb b/test/inst_update_installer_test.rb index a021b5047..9450b4167 100755 --- a/test/inst_update_installer_test.rb +++ b/test/inst_update_installer_test.rb @@ -37,7 +37,7 @@ before do allow(::Installation::UpdateRepositoriesFinder).to receive(:new).and_return(finder) allow(Yast::GetInstArgs).to receive(:going_back).and_return(false) - allow(Yast::AutoinstGeneral).to receive(:self_update?).and_return(nil) + allow(Yast::AutoinstGeneral).to receive(:self_update).and_return(nil) allow(Yast::NetworkService).to receive(:isNetworkRunning).and_return(network_running) allow(::Installation::UpdatesManager).to receive(:new).and_return(manager) allow(Yast::Installation).to receive(:restarting?).and_return(restarting) diff --git a/test/lib/update_repositories_finder_test.rb b/test/lib/update_repositories_finder_test.rb index 4284ca566..e5b14ca7b 100755 --- a/test/lib/update_repositories_finder_test.rb +++ b/test/lib/update_repositories_finder_test.rb @@ -202,7 +202,7 @@ context "and enables the installer update explicitly by an AutoYaST profile" do it "handles registration errors" do - allow(Yast::AutoinstGeneral).to receive(:self_update?).and_return(true) + allow(Yast::AutoinstGeneral).to receive(:self_update).and_return(true) allow(Yast::Mode).to receive(:auto).and_return(true) allow(finder).to receive(:import_registration_ayconfig) expect(Registration::ConnectHelpers).to receive(:catch_registration_errors)