This release introduces the SpotHero API Mocker, or "Sham" for short. It allows us to stub various requests and responses for testing across our libraries. Currently, we use VOKMockUrlProtocol
for this, but it does too much magic. There were other libraries like MockingJay
out there in the wild, but they are not maintained well and the cost of implementation was very low, so bringing this in-house made sense.
This is just a proof of concept rollout for Sham for slow integration into SpotHeroAPI
. Stay tuned.