From f3008e048504c3b5157ce3688722a6f8ab4e35d0 Mon Sep 17 00:00:00 2001 From: Knut Anderssen Date: Fri, 19 Nov 2021 10:18:53 +0000 Subject: [PATCH] Fixed EFIDetector test --- test/lib/efi_detector_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/lib/efi_detector_test.rb b/test/lib/efi_detector_test.rb index e02c44ec0..f843a1b06 100644 --- a/test/lib/efi_detector_test.rb +++ b/test/lib/efi_detector_test.rb @@ -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 @@ -12,7 +12,7 @@ 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 @@ -20,7 +20,7 @@ let(:efi) { false } it "returns false" do - expect(subject.boot_efi?) + expect(described_class.boot_efi?) end end end @@ -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 @@ -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