X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Ffacter%2Fapt_reboot_required_spec.rb;h=b60724514eac3881c3a0b7c337d528a5130c66d6;hb=refs%2Fheads%2Ftrusted-contributors;hp=7621872d0890b776d12afbe903938e60b82f2945;hpb=ef0d4e7337a535a25d76b73aebf6bfdda975f533;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/unit/facter/apt_reboot_required_spec.rb b/spec/unit/facter/apt_reboot_required_spec.rb index 7621872..b607245 100644 --- a/spec/unit/facter/apt_reboot_required_spec.rb +++ b/spec/unit/facter/apt_reboot_required_spec.rb @@ -13,7 +13,8 @@ describe 'apt_reboot_required fact' do allow(File).to receive(:file?).and_return(true) allow(File).to receive(:file?).once.with('/var/run/reboot-required').and_return(true) end - it { is_expected.to eq true } + + it { is_expected.to be true } end describe 'if a reboot is not required' do @@ -22,6 +23,7 @@ describe 'apt_reboot_required fact' do allow(File).to receive(:file?).and_return(true) allow(File).to receive(:file?).once.with('/var/run/reboot-required').and_return(false) end - it { is_expected.to eq false } + + it { is_expected.to be false } end end