Skip to content

Commit

Permalink
Fixed EFIDetector test
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 19, 2021
1 parent e76591e commit f3008e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/lib/efi_detector_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "autoinstall/efi_detector"

describe Y2Autoinstallation::EFIDetector do
describe "#boot_efi?" do
describe ".boot_efi?" do
let(:efi) { true }

context "when called in the initial Stage" do
Expand All @@ -12,15 +12,15 @@

context "and EFI is read as '1' from the Install.inf file" do
it "returns true" do
expect(subject.boot_efi?)
expect(described_class.boot_efi?)
end
end

context "and EFI is not read as '1' from the Install.inf file" do
let(:efi) { false }

it "returns false" do
expect(subject.boot_efi?)
expect(described_class.boot_efi?)
end
end
end
Expand All @@ -33,7 +33,7 @@
described_class.const_get("EFI_VARS_DIRS").each do |dir|
it "returns true if '#{dir}' exists" do
expect(Dir).to receive(:exist?).with(dir).and_return(true)
expect(subject.boot_efi?).to eq(true)
expect(described_class.boot_efi?).to eq(true)
end
end

Expand All @@ -42,7 +42,7 @@
allow(Dir).to receive(:exist?).with(dir).and_return(false)
end

expect(subject.boot_efi?).to eq(false)
expect(described_class.boot_efi?).to eq(false)
end
end
end
Expand Down

0 comments on commit f3008e0

Please sign in to comment.