Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
(FACT-2499) Fix options validator tests on jruby.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Irimie committed Apr 6, 2020
1 parent 2c5e08f commit 299ddd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/framework/core/options/options_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
describe '#validate' do
let(:logger) { instance_spy(Facter::Log) }

before do
allow(Facter::Log).to receive(:new).and_return(logger)
end

context 'when options are invalid pairs' do
let(:options) { ['--puppet', '--no-ruby'] }
let(:error_code) { 1 }
Expand Down

0 comments on commit 299ddd5

Please sign in to comment.