fix(instagram): read API version from installation config

This commit is contained in:
Pranav
2026-07-05 11:36:15 -07:00
parent 8818d276b9
commit d7a0463008
4 changed files with 11 additions and 4 deletions
@@ -12,6 +12,7 @@ RSpec.describe InstagramConcern do
before do
allow(GlobalConfigService).to receive(:load).with('INSTAGRAM_APP_ID', nil).and_return(client_id)
allow(GlobalConfigService).to receive(:load).with('INSTAGRAM_APP_SECRET', nil).and_return(client_secret)
allow(GlobalConfigService).to receive(:load).with('INSTAGRAM_API_VERSION', 'v22.0').and_return('v22.0')
allow(Rails.logger).to receive(:error)
end