Skip to content

Commit 9b2a864

Browse files
committed
fix: use correct wording in unit test
1 parent 31e2d20 commit 9b2a864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/unit/facter/puppetdb_version_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
Facter.clear
1111
end
1212

13-
it 'should return the correct puppetdb version' do
13+
it 'returns the correct puppetdb version' do
1414
allow(Facter::Util::Resolution).to receive(:which).with('puppetdb').and_return('/usr/bin/puppetdb')
1515
allow(Facter::Core::Execution).to receive(:execute).with('puppetdb --version').and_return("puppetdb version: 7.18.0\n")
1616

1717
expect(Facter.fact(:puppetdb_version).value).to eq('7.18.0')
1818
end
1919

20-
it 'should return nil if puppetdb command is not available' do
20+
it 'returns nil if puppetdb command is not available' do
2121
allow(Facter::Util::Resolution).to receive(:which).with('puppetdb').and_return(nil)
2222

2323
expect(Facter.fact(:puppetdb_version).value).to be_nil
2424
end
2525

26-
it 'should return nil if puppetdb version output is nil' do
26+
it 'returns nil if puppetdb version output is nil' do
2727
allow(Facter::Util::Resolution).to receive(:which).with('puppetdb').and_return('/usr/bin/puppetdb')
2828
allow(Facter::Core::Execution).to receive(:execute).with('puppetdb --version').and_return(nil)
2929

0 commit comments

Comments
 (0)