Sha256: 896210b0d581cad66500abd1ac939e81fb7a6edd42cd438555f05f9b3235209f
Contents?: true
Size: 765 Bytes
Versions: 3
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'identify users' do let(:user) { { external_id: 12345, user_alias: { alias_name: 'abc', alias_label: 'foo' } } } subject(:identify_users) do api.identify_users(aliases_to_identify: [user]) end context 'with success', vcr: true do it 'responds with created' do expect(identify_users.status).to be 201 end it 'responds with success message' do expect(JSON.parse(identify_users.body)).to eq( 'aliases_processed' => 1, 'message' => 'success' ) end end context 'unauthorized', vcr: true do let(:api_key) { 'non-existent' } it 'responds with unauthorized' do expect(identify_users.status).to be 401 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
braze_ruby-0.4.2 | spec/integrations/identify_users_spec.rb |
braze_ruby-0.4.1 | spec/integrations/identify_users_spec.rb |
braze_ruby-0.4.0 | spec/integrations/identify_users_spec.rb |