X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Ffacter%2Fapt_package_updates_spec.rb;h=08bfb42a342c70770303135ebd97d6cb20739fbd;hb=1139f801eb7c603c4ee10ef165f03a710ef8bf38;hp=5c7a624f4d7f2688ca367b62676870cfc35b70ce;hpb=d090ae4ebb9041bc46e161f698732a6bc9d28399;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/unit/facter/apt_package_updates_spec.rb b/spec/unit/facter/apt_package_updates_spec.rb index 5c7a624..08bfb42 100644 --- a/spec/unit/facter/apt_package_updates_spec.rb +++ b/spec/unit/facter/apt_package_updates_spec.rb @@ -8,7 +8,7 @@ describe 'apt_package_updates fact' do before { Facter.fact(:apt_has_updates).stubs(:value).returns false } - it { should be nil } + it { is_expected.to be nil } end describe 'when apt has updates' do @@ -22,9 +22,9 @@ describe 'apt_package_updates fact' do } it { if Facter.version < '2.0.0' - should == 'puppet-common,linux-generic,linux-image-generic' + is_expected.to eq('puppet-common,linux-generic,linux-image-generic') else - should == ['puppet-common', 'linux-generic', 'linux-image-generic'] + is_expected.to eq(['puppet-common', 'linux-generic', 'linux-image-generic']) end } end