Sha256: 7b71ba9affdae5f2f0a17471bb05de1641d1330930e6d9908568987593ca892a

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require 'spec_helper'

describe MonkeyParty::Subscriber do
  let(:email) { "user@example.com" }
  let(:subscriber) { MonkeyParty::Subscriber.new(email) }

  it "serializes to a mailchimp hash" do
    subscriber.to_mailchimp_hash.keys.should include("EMAIL")
    subscriber.to_mailchimp_hash["EMAIL"].should eql(email)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
monkey_party-0.3.2 spec/monkey_party/subscriber_spec.rb
monkey_party-0.3.1 spec/monkey_party/subscriber_spec.rb
monkey_party-0.3.0 spec/monkey_party/subscriber_spec.rb