test/campaign_test.rb in createsend-1.0.1 vs test/campaign_test.rb in createsend-1.0.2
- old
+ new
@@ -24,10 +24,15 @@
should "send a campaign" do
stub_post(@api_key, "campaigns/#{@campaign.campaign_id}/send.json", nil)
@campaign.send "confirmation@example.com"
end
+
+ should "unschedule a campaign" do
+ stub_post(@api_key, "campaigns/#{@campaign.campaign_id}/unschedule.json", nil)
+ @campaign.unschedule
+ end
should "delete a campaign" do
stub_delete(@api_key, "campaigns/#{@campaign.campaign_id}.json", nil)
@campaign.delete
end
@@ -39,9 +44,12 @@
summary.TotalOpened.should == 10
summary.Clicks.should == 0
summary.Unsubscribed.should == 0
summary.Bounced.should == 0
summary.UniqueOpened.should == 5
+ summary.Mentions.should == 23
+ summary.Forwards.should == 11
+ summary.Likes.should == 32
summary.WebVersionURL.should == "http://createsend.com/t/r-3A433FC72FFE3B8B"
end
should "get the lists and segments for a campaign" do
stub_get(@api_key, "campaigns/#{@campaign.campaign_id}/listsandsegments.json", "campaign_listsandsegments.json")
\ No newline at end of file