Skip to content

Commit

Permalink
fix name also in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jul 16, 2020
1 parent 8c0054e commit 7272177
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/inst_functions_test.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/inst_update_installer_test.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/lib/update_repositories_finder_test.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 7272177

Please sign in to comment.