require 'spec_helper'

describe Smtpcom::Sendapi do

  describe 'setting up' do
    it 'has api_key attribute' do
      expect( Smtpcom::Sendapi ).to respond_to(:api_key=)
    end

    it 'configurable' do
      Smtpcom::Sendapi.api_key = 'api_key'
      expect( Smtpcom::Sendapi.api_key ).to eq('api_key')
    end

  end

  it 'has a version number' do
    expect(Smtpcom::Sendapi::VERSION).not_to be nil
  end
end
