Skip to content

Commit

Permalink
fixed testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Feb 27, 2024
1 parent ed95fdb commit d8c208b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/systemdboot_widgets_test.rb
Expand Up @@ -53,15 +53,17 @@ def stub_widget_value(id, value)
before do
stub_widget_value(:cont_boot, true)
stub_widget_value(:seconds, -1)
allow(Yast::ProductFeatures).to receive(:GetIntegerFeature).with("globals",
"boot_timeout").and_return(15)
end

it "is valid everytime" do
expect(subject.validate).to eq true
end

it "set to default timeout if selected" do
it "set to product default timeout if selected" do
subject.validate
expect(bootloader.menue_timeout).to eq 10
expect(bootloader.menue_timeout).to eq 15
end
end

Expand Down

0 comments on commit d8c208b

Please sign in to comment.