test/subscriber_test.rb in createsend-2.3.0 vs test/subscriber_test.rb in createsend-2.4.0
- old
+ new
@@ -18,9 +18,10 @@
subscriber.Date.should == "2010-10-25 10:28:00"
subscriber.State.should == "Active"
subscriber.CustomFields.size.should == 3
subscriber.CustomFields.first.Key.should == 'website'
subscriber.CustomFields.first.Value.should == 'http://example.com'
+ subscriber.ReadsEmailWith.should == "Gmail"
end
should "add a subscriber without custom fields" do
stub_post(@api_key, "subscribers/#{@list_id}.json", "add_subscriber.json")
email_address = CreateSend::Subscriber.add @list_id, "subscriber@example.com", "Subscriber", [], true
\ No newline at end of file