Skip to content

Commit

Permalink
Update api-readall-test to use #to_api_hash
Browse files Browse the repository at this point in the history
This allows me to sanity check the changes to the API JSON
from a loading perspective.

Related to: Homebrew/brew#16410
  • Loading branch information
apainintheneck committed Jan 10, 2024
1 parent cec3ba0 commit 001ea16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hd-utils/stub-api/formula.rb
Expand Up @@ -21,7 +21,7 @@ module Formula
::Formula.generating_hash!
JSON = NAMES.to_h do |formula_name|
formula = Formulary.factory(formula_name)
json = JSON.generate(formula.to_hash_with_variations)
json = JSON.generate(formula.to_api_hash)
hash = JSON.parse(json)
[hash["name"], hash.except("name")]
end.freeze
Expand Down

0 comments on commit 001ea16

Please sign in to comment.