summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-22 12:05:14 -0600
committermo khan <mo@mokhan.ca>2013-07-22 12:05:14 -0600
commitb9e4d5e279cafef2b6d34984aa28b23da27b82b4 (patch)
tree857def2e6b7bcc79f9461de10cbf3c189aa1a383
parentb7541657a47f237ccbb86faecb18623d1c34f3e9 (diff)
extract list ids
-rw-r--r--spec/models/sign_up_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/models/sign_up_spec.rb b/spec/models/sign_up_spec.rb
index 0c27680..1d12983 100644
--- a/spec/models/sign_up_spec.rb
+++ b/spec/models/sign_up_spec.rb
@@ -13,18 +13,19 @@ describe SignUp do
let(:sign_up) { SignUp.new(email: email) }
let(:gibbon) { Gibbon.new(ENV['MAILCHIMP_API_KEY']) }
let(:email) { 'example@parleytool.com' }
+ let(:list_id) { ENV['MAILCHIMP_LIST_ID'] }
before :each do
sign_up.subscribe
end
after :each do
- gibbon.list_unsubscribe(id: ENV['MAILCHIMP_LIST_ID'], email_address: email)
+ gibbon.list_unsubscribe(id: list_id, email_address: email)
end
it "should subscribe to the mailchimp email list" do
results = gibbon.lists_for_email(email_address: email)
- results.should include(ENV['MAILCHIMP_LIST_ID'])
+ results.should include(list_id)
end
end
end