test/campaign_test.rb in createsend-2.1.0 vs test/campaign_test.rb in createsend-2.2.0

- old
+ new

@@ -48,10 +48,11 @@ 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" + summary.WorldviewURL.should == "http://client.createsend.com/reports/wv/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") ls = @campaign.lists_and_segments @@ -86,10 +87,16 @@ opens.Results.size.should == 5 opens.Results.first.EmailAddress.should == "subs+6576576576@example.com" opens.Results.first.ListID.should == "512a3bc577a58fdf689c654329b50fa0" opens.Results.first.Date.should == "2010-10-11 08:29:00" opens.Results.first.IPAddress.should == "192.168.126.87" + opens.Results.first.Latitude.should == -33.8683 + opens.Results.first.Longitude.should == 151.2086 + opens.Results.first.City.should == "Sydney" + opens.Results.first.Region.should == "New South Wales" + opens.Results.first.CountryCode.should == "AU" + opens.Results.first.CountryName.should == "Australia" opens.ResultsOrderedBy.should == "date" opens.OrderDirection.should == "asc" opens.PageNumber.should == 1 opens.PageSize.should == 1000 opens.RecordsOnThisPage.should == 5 @@ -105,9 +112,15 @@ clicks.Results.first.EmailAddress.should == "subs+6576576576@example.com" clicks.Results.first.URL.should == "http://video.google.com.au/?hl=en&tab=wv" clicks.Results.first.ListID.should == "512a3bc577a58fdf689c654329b50fa0" clicks.Results.first.Date.should == "2010-10-11 08:29:00" clicks.Results.first.IPAddress.should == "192.168.126.87" + clicks.Results.first.Latitude.should == -33.8683 + clicks.Results.first.Longitude.should == 151.2086 + clicks.Results.first.City.should == "Sydney" + clicks.Results.first.Region.should == "New South Wales" + clicks.Results.first.CountryCode.should == "AU" + clicks.Results.first.CountryName.should == "Australia" clicks.ResultsOrderedBy.should == "date" clicks.OrderDirection.should == "asc" clicks.PageNumber.should == 1 clicks.PageSize.should == 1000 clicks.RecordsOnThisPage.should == 3 \ No newline at end of file