Skip to content

Commit

Permalink
fix(test): fix software manager tests (#1376)
Browse files Browse the repository at this point in the history
Small fix to software manager tests.

Tests should not rely on `products.d`, but let's think about that later.
  • Loading branch information
imobachgs authored Jun 25, 2024
2 parents 29b4ffd + 6ca27e4 commit ce30ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/test/agama/software/manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@
describe "#products" do
it "returns the list of known products" do
products = subject.products
expect(products.size).to eq(2)
expect(products).to all(be_a(Agama::Software::Product))
expect(products).to contain_exactly(
an_object_having_attributes(id: "Tumbleweed"),
an_object_having_attributes(id: "MicroOS")
an_object_having_attributes(id: "MicroOS"),
an_object_having_attributes(id: "Leap_16.0")
)
end
end
Expand Down

0 comments on commit ce30ede

Please sign in to comment.