Skip to content

Commit

Permalink
Rename label description
Browse files Browse the repository at this point in the history
  • Loading branch information
nonelse committed Apr 9, 2015
1 parent a401a12 commit 176488d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Adjust/ADJAttribution.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ - (NSDictionary *)dictionary {
}

- (NSString *)description {
return [NSString stringWithFormat:@"tt:%@ tn:%@ net:%@ cam:%@ adg:%@ cre:%@ clklbl:%@",
return [NSString stringWithFormat:@"tt:%@ tn:%@ net:%@ cam:%@ adg:%@ cre:%@ lab:%@",
self.trackerToken, self.trackerName, self.network, self.campaign,
self.adgroup, self.creative, self.clickLabel];
}
Expand Down
8 changes: 4 additions & 4 deletions AdjustTests/ADJActivityHandlerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ - (void)testAttribution {

// check the first attribution is written
XCTAssert([self.loggerMock containsMessage:ADJLogLevelDebug
beginsWith:@"Wrote Attribution: tt:trackerTokenValue tn:trackerNameValue net:networkValue cam:campaignValue adg:adgroupValue cre:creativeValue clklbl:clickLabelValue"], @"%@", self.loggerMock);
beginsWith:@"Wrote Attribution: tt:trackerTokenValue tn:trackerNameValue net:networkValue cam:campaignValue adg:adgroupValue cre:creativeValue lab:clickLabelValue"], @"%@", self.loggerMock);

// change values of the same attribution
attribution.trackerName = @"trackerNameValueNew";
Expand All @@ -1103,7 +1103,7 @@ - (void)testAttribution {

// check the second attribution is written
XCTAssert([self.loggerMock containsMessage:ADJLogLevelDebug
beginsWith:@"Wrote Attribution: tt:trackerTokenValueNew tn:trackerNameValueNew net:networkValueNew cam:campaignValueNew adg:adgroupValueNew cre:creativeValueNew clklbl:clickLabelValueNew"], @"%@", self.loggerMock);
beginsWith:@"Wrote Attribution: tt:trackerTokenValueNew tn:trackerNameValueNew net:networkValueNew cam:campaignValueNew adg:adgroupValueNew cre:creativeValueNew lab:clickLabelValueNew"], @"%@", self.loggerMock);

// build a json dictionary equal to the updated Attribution
NSMutableDictionary * newJsonDictionary = [[NSMutableDictionary alloc] init];
Expand All @@ -1124,7 +1124,7 @@ - (void)testAttribution {

// check the same attribution is not written again
XCTAssertFalse([self.loggerMock containsMessage:ADJLogLevelDebug
beginsWith:@"Wrote Attribution: tt:trackerTokenValueNew tn:trackerNameValueNew net:networkValueNew cam:campaignValueNew adg:adgroupValueNew cre:creativeValueNew clklbl:clickLabelValueNew"], @"%@", self.loggerMock);
beginsWith:@"Wrote Attribution: tt:trackerTokenValueNew tn:trackerNameValueNew net:networkValueNew cam:campaignValueNew adg:adgroupValueNew cre:creativeValueNew lab:clickLabelValueNew"], @"%@", self.loggerMock);


[activityHandler setAskingAttribution:NO];
Expand Down Expand Up @@ -1175,7 +1175,7 @@ - (void)testAttribution {

// check new attribution after restart
XCTAssert([self.loggerMock containsMessage:ADJLogLevelDebug
beginsWith:@"Wrote Attribution: tt:trackerTokenValue tn:trackerNameValue net:networkValue cam:campaignValue adg:adgroupValue cre:creativeValue clklbl:clickLabelValue"], @"%@", self.loggerMock);
beginsWith:@"Wrote Attribution: tt:trackerTokenValue tn:trackerNameValue net:networkValue cam:campaignValue adg:adgroupValue cre:creativeValue lab:clickLabelValue"], @"%@", self.loggerMock);

[newActivityHandler setAskingAttribution:YES];

Expand Down

0 comments on commit 176488d

Please sign in to comment.