Sha256: 6ba3f7a44d82457aa6e689246790bbfe0adbf9a0e5d8270849064eef002f85d0
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' class API include BrazeRuby::Endpoints::DeleteUsers def api_key :api_key end end describe BrazeRuby::Endpoints::DeleteUsers do let(:api) { API.new } let(:delete_users_service) { double(:delete_users_service) } before { api.delete_users_service = delete_users_service } describe '#delete_users' do let(:payload) { [1, 2, 3] } subject(:delete_users!) { api.delete_users(payload) } it 'deletes users' do expect(delete_users_service).to receive(:perform) .with(:api_key, external_ids: payload) delete_users! end end end
Version data entries
4 entries across 4 versions & 1 rubygems