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

Commit

Permalink
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 0089dff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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

0 comments on commit 0089dff

Please sign in to comment.