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

Commit

Permalink
(FACT-2542) fixed rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Filipovici committed Apr 28, 2020
1 parent 9798ed9 commit 2694554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/facter/facter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
def mock_fact_manager(method, return_value)
allow(fact_manager_spy).to receive(method).and_return(return_value)
allow(fact_collection_spy)
.to receive(:build_fact_collection!)
.with(return_value)
.and_return(return_value.empty? ? empty_fact_collection : fact_collection_spy)
.to receive(:build_fact_collection!)
.with(return_value)
.and_return(return_value.empty? ? empty_fact_collection : fact_collection_spy)
end

def mock_collection(method, os_name = nil, error = nil)
Expand Down Expand Up @@ -154,7 +154,7 @@ def mock_collection(method, os_name = nil, error = nil)
# rubocop:enable Style/UnneededInterpolation
end

it 'return no value' do
it 'returns no value' do
mock_fact_manager(:resolve_facts, [])
mock_collection(:value, nil, key_error)

Expand Down

0 comments on commit 2694554

Please sign in to comment.