Sha256: 45449792204f639b92f4611853a511eb5345be7a8f77c0a2483fdb2612496000
Contents?: true
Size: 686 Bytes
Versions: 4
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' describe Sendgrid::Web::Configurator do describe 'can store username and password' do subject do Sendgrid::Web::Configurator.new do |config| config.username = 'foo' config.password = 'bar' end end its(:username) { should eql('foo') } its(:password) { should eql('bar') } end it 'sets a default root_url for sendgrid' do subject.root_url.should eql('https://sendgrid.com') end it 'can overwrite the api root_url' do configurator = Sendgrid::Web::Configurator.new do |config| config.root_url = 'https://example.com' end configurator.root_url.should eql('https://example.com') end end
Version data entries
4 entries across 4 versions & 1 rubygems