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

Commit

Permalink
(FACT-2420) fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmy committed Apr 30, 2020
1 parent d3bf5da commit 9977d3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/facter/facter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ def mock_collection(method, os_name = nil, error = nil)
describe '#search' do
it 'sends call to Facter::Options' do
allow(Facter::Options).to receive(:[]=)
dirs = ['/dir1', '/dir2']
Facter.search(*dirs)
dirs = ['/dir1', '/dir2']
Facter.search(*dirs)

expect(Facter::Options).to have_received(:[]=).with(:custom_dir, dirs)
expect(Facter::Options).to have_received(:[]=).with(:custom_dir, dirs)
end
end

Expand All @@ -225,10 +225,10 @@ def mock_collection(method, os_name = nil, error = nil)
describe '#search_external' do
it 'sends call to Facter::Options' do
allow(Facter::Options).to receive(:[]=)
dirs = ['/dir1', '/dir2']
Facter.search_external(dirs)
dirs = ['/dir1', '/dir2']
Facter.search_external(dirs)

expect(Facter::Options).to have_received(:[]=).with(:external_dir, dirs)
expect(Facter::Options).to have_received(:[]=).with(:external_dir, dirs)
end
end

Expand Down

0 comments on commit 9977d3d

Please sign in to comment.