Skip to content

Commit

Permalink
fix tests as env query is now changed due to new rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 4, 2024
1 parent c972517 commit c003d57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/support/storage_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ def mock_env(hash)
hash[key]
end
allow(ENV).to receive(:keys).and_return hash.keys
allow(ENV).to receive(:fetch) do |key, default|
hash[key] || default
end
# reset the ENV cache
Y2Storage::StorageEnv.instance.send(:initialize)
end
Expand Down

0 comments on commit c003d57

Please sign in to comment.