Sha256: b332572379e9967e82dbc36d77e434b43e9382255822153a1bbbf793928e37c6
Contents?: true
Size: 653 Bytes
Versions: 23
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' describe SendGrid::Settings do let(:sendgrid_client) { SendGrid::API.new(api_key: 'fake_key').client } let(:settings) { SendGrid::Settings.new(sendgrid_client: sendgrid_client) } describe '.new' do it 'initializes correctly' do expect(settings).to be_a SendGrid::Settings end end describe '.bcc' do it 'fetches bcc data' do expect(settings.bcc).to be_a SendGrid::Response end end describe '.update_bcc' do it 'updates bcc' do bcc_response = settings.update_bcc(enabled: true, email: "email@example.com") expect(bcc_response).to be_a SendGrid::Response end end end
Version data entries
23 entries across 23 versions & 1 rubygems