Skip to content

Commit 4ff1892

Browse files
committed
Auto-correct rubocop offenses
1 parent dd2ae8c commit 4ff1892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/unbound/facter/unbound_version_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
allow(Facter::Util::Resolution).to receive(:which).with('unbound').and_return(false)
3131
end
3232

33-
it { expect(Facter.fact(:unbound_version).value).to eq(nil) }
33+
it { expect(Facter.fact(:unbound_version).value).to be_nil }
3434
end
3535

3636
tests.each_pair do |test, versions|
@@ -50,7 +50,7 @@
5050
if test == 'valid'
5151
it { expect(Facter.fact(:unbound_version).value).to eq(version) }
5252
else
53-
it { expect(Facter.fact(:unbound_version).value).to eq(nil) }
53+
it { expect(Facter.fact(:unbound_version).value).to be_nil }
5454
end
5555
end
5656
end

0 commit comments

Comments
 (0)