Update CODEOWNERS
[puppet-modules/puppetlabs-apt.git] / spec / unit / facter / apt_reboot_required_spec.rb
index 22f5617dbaed64e226a8584ddae477ef1db1b8f8..b60724514eac3881c3a0b7c337d528a5130c66d6 100644 (file)
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'spec_helper'
 
 describe 'apt_reboot_required fact' do
@@ -11,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
@@ -20,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