impress/spec/support/mocks/nc_mall.rb
Emi Matchu 04ed182cef First draft of auto-modeling
Run `rails items:auto_model`! We'll set this up on a cron if we continue to be satisfied with the results.
2026-01-20 18:37:17 -08:00

8 lines
361 B
Ruby

# We replace Neopets::NCMall.fetch_pet_data_sci with a mocked implementation.
module Neopets::NCMall
# Mock implementation that generates predictable SCI hashes for testing.
# The hash is derived from the pet_sci and item_ids to ensure consistency.
def self.fetch_pet_data_sci(pet_sci, item_ids = [])
"#{pet_sci}-#{item_ids.sort.join('-')}"
end
end