Skip to content

Commit

Permalink
Makes Rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Feb 28, 2022
1 parent 1543515 commit 8685b47
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions test/autoyast_addons_spec.rb
Expand Up @@ -85,25 +85,30 @@

describe "#register" do
it "registers the selected addons" do
expect(registration).to receive(:register_product).with({
basesystem_module = {
"name" => "sle-module-basesystem", "reg_code" => nil, "arch" => "x86_64",
"version" => "15"
}).ordered
expect(registration).to receive(:register_product).with({
}
desktop_apps_module = {
"name" => "sle-module-desktop-applications", "reg_code" => nil,
"arch" => "x86_64", "version" => "15"
}).ordered
}

expect(registration).to receive(:register_product).with(basesystem_module).ordered
expect(registration).to receive(:register_product).with(desktop_apps_module).ordered

ayaddons = Registration::AutoyastAddons.new(unsorted_addons, registration)
ayaddons.select
ayaddons.register
end

it "registers the selected addon using the provided reg. key" do
expect(registration).to receive(:register_product).with({
basesystem_module = {
"name" => "sle-module-basesystem", "reg_code" => "abcd42", "arch" => "x86_64",
"version" => "15"
})
}

expect(registration).to receive(:register_product).with(basesystem_module)

ayaddons = Registration::AutoyastAddons.new(addons_with_reg_key, registration)
ayaddons.select
Expand Down

0 comments on commit 8685b47

Please sign in to comment.