Skip to content

Commit

Permalink
Merge branch 'fix-boundingrect-ios6'
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-hofsteede committed Dec 5, 2013
2 parents 8b62ff7 + 934229d commit 07265c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions HelloMixpanel/HelloMixpanelTests/HelloMixpanelTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -914,4 +914,22 @@ - (void)testParseSurveyQuestion
STAssertNil([MPSurveyQuestion questionWithJSONObject:m], nil);
}

- (void)testShowSurvey
{
NSDictionary *o = @{@"id": @3,
@"name": @"survey",
@"collections": @[@{@"id": @9, @"name": @"collection"}],
@"questions": @[@{
@"id": @12,
@"type": @"text",
@"prompt": @"Anything else?",
@"extra_data": @{}}]};

MPSurvey *survey = [MPSurvey surveyWithJSONObject:o];

[self.mixpanel performSelector:@selector(presentSurveyWithRootViewController:) withObject:survey];
// No assertions, test pass = no crash
}


@end

0 comments on commit 07265c0

Please sign in to comment.