Skip to content

Commit

Permalink
clean up push test
Browse files Browse the repository at this point in the history
  • Loading branch information
kasrak committed Aug 22, 2012
1 parent f85d9f2 commit 5454782
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MixpanelEventSample/Unit Tests/Unit_Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,9 @@ - (void)testPushFormat {
STAssertTrue([dict objectForKey:@"$token"] != nil, @"token not set");

NSDictionary *operation = [dict objectForKey:@"$union"];
NSArray *ios_devices = [operation objectForKey:@"$ios_devices"];
NSDictionary *targetOperation = [NSDictionary dictionaryWithObjectsAndKeys:[NSArray arrayWithObject:@"74657374"], @"$ios_devices", nil];

STAssertTrue(ios_devices.count == 1, @"ios_devices should contain exactly 1 token");
STAssertTrue([(NSString*)[ios_devices objectAtIndex:0] isEqualToString:@"74657374"], @"push format is incorrect");
STAssertTrue([operation isEqualToDictionary:targetOperation], @"push format is incorrect");
}

@end

0 comments on commit 5454782

Please sign in to comment.