Merge pull request #842 from tphoney/remove_unsupported_code
[puppet-modules/puppetlabs-apt.git] / spec / unit / facter / apt_package_security_updates_spec.rb
index b6a713f18697f46a1899da4602be8556aca4d838..913add03d34db519f3588d49c25cd31d457b1172 100644 (file)
@@ -31,13 +31,7 @@ describe 'apt_package_security_updates fact' do
           "Conf curl (7.52.1-5+deb9u2 Debian-Security:9/stable [amd64])\n" \
       end
 
-      it {
-        if Facter.version < '2.0.0'
-          is_expected.to eq('curl')
-        else
-          is_expected.to eq(['curl'])
-        end
-      }
+      it { is_expected.to eq(['curl']) }
     end
 
     describe 'on Ubuntu' do
@@ -50,13 +44,7 @@ describe 'apt_package_security_updates fact' do
           "Conf procps (2:3.3.10-4ubuntu2.3 Ubuntu:16.04/xenial-updates [amd64])\n"
       end
 
-      it {
-        if Facter.version < '2.0.0'
-          is_expected.to eq('tzdata,curl')
-        else
-          is_expected.to eq(%w[tzdata curl])
-        end
-      }
+      it { is_expected.to eq(['tzdata', 'curl']) }
     end
   end
 end