Sha256: 423c5a693c70642ce78bdba41d58fb89f712670195d24ede10eb05115c5d4251
Contents?: true
Size: 943 Bytes
Versions: 4
Compression:
Stored size: 943 Bytes
Contents
require 'spec_helper' RSpec.describe 'email sync' do describe 'unsubscribes' do it 'responds with unsubscribed emails', vcr: true do response = api.email_unsubscribes(start_date: '2019-03-20', end_date: '2019-03-25') emails = JSON.parse(response.body)['emails'] expect(emails.size).to eq(1) expect(emails.first['email']).to eq('wojtek@test.com') end it 'responds with empty array when no unsubscribes', vcr: true do response = api.email_unsubscribes(start_date: '2019-02-20', end_date: '2019-02-25') emails = JSON.parse(response.body)['emails'] expect(emails.size).to eq(0) end end describe 'hard_bounces' do it 'responds with empty array when no hard bounces', vcr: true do response = api.email_hard_bounces(start_date: '2019-02-20', end_date: '2019-02-25') emails = JSON.parse(response.body)['emails'] expect(emails.size).to eq(0) end end end
Version data entries
4 entries across 4 versions & 1 rubygems