Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 8d92730

Browse files
author
Peter Souter
committed
Change rspec for no java present
1 parent 7f78415 commit 8d92730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/facter/java_version_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
java_version_output = "bash: java: command not found"
2727
allow(Facter::Util::Resolution).to receive(:exec).with("java -version 2>&1").
2828
and_return(java_version_output)
29-
Facter.fact(:java_version).value.should == "NOT_INSTALLED"
29+
Facter.fact(:java_version).value.should be_nil
3030
end
3131
end
3232
end

0 commit comments

Comments
 (0)