otwarchive-symphonyarchive/spec/support/zoho_client_spec_helper.rb

18 lines
455 B
Ruby
Raw Normal View History

2026-03-11 22:22:11 +00:00
module ZohoClientSpecHelper
def fake_auth_client
double(:fake_auth_client, access_token: "x7y8z9")
end
def stub_zoho_auth_client
allow(ZohoAuthClient).to receive(:new).and_return(fake_auth_client)
end
def fake_resource_client
double(:fake_resource_client, retrieve_contact_id: "1", create_ticket: nil)
end
def stub_zoho_resource_client
allow(ZohoResourceClient).to receive(:new).and_return(fake_resource_client)
end
end