From 9977d3d97733304174573a5eb1736e003be18349 Mon Sep 17 00:00:00 2001 From: gimmy Date: Thu, 30 Apr 2020 16:51:10 +0300 Subject: [PATCH] (FACT-2420) fix rubocop offenses --- spec/facter/facter_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/facter/facter_spec.rb b/spec/facter/facter_spec.rb index 2a65f7746..a48d54a0c 100644 --- a/spec/facter/facter_spec.rb +++ b/spec/facter/facter_spec.rb @@ -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 @@ -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