Skip to content

Commit

Permalink
Adapt test for working well with Ruby 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Feb 28, 2022
1 parent 65b3330 commit de2c0f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/autoyast_addons_spec.rb
Expand Up @@ -85,25 +85,25 @@

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

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

0 comments on commit de2c0f9

Please sign in to comment.