Skip to content

Commit

Permalink
updated testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Oct 1, 2020
1 parent 2fd68cd commit c36eb74
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/update_test.rb
Expand Up @@ -411,13 +411,9 @@ def default_SetDesktopPattern_stubs

context "product change openSUSE->SLES" do
before do
let(:all_products_hash) do
YAML.load_file(File.join(__dir__,
all_products_hash = YAML.load_file(File.join(__dir__,
"../data/zypp/opensuse_sles.yml"))
end
let(:all_products) do
all_products_hash.map { |p| Y2Packager::Resolvable.new(p) }
end
all_products = all_products_hash.map { |p| Y2Packager::Resolvable.new(p) }
allow(Yast::Installation).to receive(:installedVersion)
.and_return("nameandversion" => "openSUSE 15.1")
allow(Y2Packager::Resolvable).to receive(:find).with(kind: :product)
Expand Down

0 comments on commit c36eb74

Please sign in to comment.