Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 9, 2016
1 parent 7df7966 commit 7587809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/grub2_widgets_test.rb
Expand Up @@ -49,15 +49,15 @@ def stub_widget_value(id, value)

it "is initialized to hidden timeout value if defined" do
bootloader.grub_default.hidden_timeout = "10"
expect(subject).to receive(:value=).with("10")
expect(subject).to receive(:value=).with(10)

subject.init
end

it "is initialized to timeout value otherwise" do
bootloader.grub_default.hidden_timeout = ""
bootloader.grub_default.timeout = "10"
expect(subject).to receive(:value=).with("10")
expect(subject).to receive(:value=).with(10)

subject.init
end
Expand Down
2 changes: 1 addition & 1 deletion test/grub2base_test.rb
Expand Up @@ -7,7 +7,7 @@
before do
allow(::CFA::Grub2::Default).to receive(:new).and_return(double("GrubDefault", loaded?: false, load: nil, save: nil))
allow(::CFA::Grub2::GrubCfg).to receive(:new).and_return(double("GrubCfg", load: nil))
allow(Bootloader::Sections).to receive(:new).and_return(double("Sections", write: nil))
allow(Bootloader::Sections).to receive(:new).and_return(double("Sections").as_null_object)
end

it "reads grub default config" do
Expand Down

0 comments on commit 7587809

Please sign in to comment.