Sha256: 7cd221f9b6259240e2b3d62f8f58ba0ff1313b2f85fd6f19b2eedb56812ea92d

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

require 'spec/spec_helper'

describe Hominid do
  before do
    api_key = ENV['MAIL_CHIMP_API_KEY']
    raise "You must set the MAIL_CHIMP_API_KEY environment variable to test" if api_key.empty?
    @hominid = Hominid.new(:api_key => api_key)
    @list_id = ENV['MAIL_CHIMP_TEST_LIST_ID']
    raise "You must set the MAIL_CHIMP_TEST_LIST_ID environment variable to test" if @list_id.empty?
  end
  
  describe "#subscribe" do
    context "when not supplying a double-opt-in argument" do
      it "should not blow up" do
        proc {
          @hominid.subscribe(@list_id, Faker::Internet.email)
        }.should_not raise_error
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Empact-hominid-1.1.12 spec/hominid_spec.rb