Skip to content

Commit

Permalink
Mock check of installed packages in save_network test
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Jan 22, 2021
1 parent 1cc24cc commit 5b90d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/save_network_test.rb
Expand Up @@ -45,6 +45,7 @@
before do
stub_const("Yast::SaveNetworkClient::ROOT_PATH", scr_root)
allow(Yast::Installation).to receive(:destdir).and_return(destdir)
allow(Yast::PackageSystem).to receive(:Installed).and_return(false)

FileUtils.mkdir_p(destdir_sysconfig)
["dhcp", "config"].each do |file|
Expand Down Expand Up @@ -114,7 +115,6 @@

context "when virtualization support is installed" do
before do
allow(Yast::PackageSystem).to receive(:Installed).and_return(false)
allow(Yast::PackageSystem).to receive(:Installed).with("kvm").and_return(true)
end

Expand Down

0 comments on commit 5b90d0b

Please sign in to comment.