Fix analytics spec

This commit is contained in:
Douglas Eichelberger 2025-09-06 22:51:57 -07:00
parent f96d518504
commit 25d4e90583
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ RSpec.describe Utils::Analytics do
end end
specify "::table_output" do specify "::table_output" do
results = { ack: 10, wget: 100 } results = { "ack" => 10, "wget" => 100 }
expect { described_class.table_output("install", "30", results) } expect { described_class.table_output("install", "30", results) }
.to output(/110 | 100.00%/).to_stdout .to output(/110 | 100.00%/).to_stdout
.and not_to_output.to_stderr .and not_to_output.to_stderr

View File

@ -360,7 +360,7 @@ module Utils
nil nil
end end
sig { returns(T::Hash[Symbol, String]) } sig { returns(T::Hash[Symbol, T.any(T::Boolean, String)]) }
def default_package_tags def default_package_tags
cache[:default_package_tags] ||= begin cache[:default_package_tags] ||= begin
# Only display default prefixes to reduce cardinality and improve privacy # Only display default prefixes to reduce cardinality and improve privacy