Skip to content

Commit

Permalink
Improved method parsing test to check for the problem mentioned in is…
Browse files Browse the repository at this point in the history
…sue tomaz#218
  • Loading branch information
mattrubin committed Jul 2, 2012
1 parent fe280df commit 00d7b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Testing/GBObjectiveCParser-MethodsParsingTesting.m
Expand Up @@ -283,12 +283,12 @@ - (void)testParseObjectsFromString_shouldRegisterComplexPropertyDefinition2 {
GBObjectiveCParser *parser = [GBObjectiveCParser parserWithSettingsProvider:[GBTestObjectsRegistry mockSettingsProvider]];
GBStore *store = [[GBStore alloc] init];
// execute
[parser parseObjectsFromString:@"@interface MyClass @property (weak) IBOutlet id delegate; @end" sourceFile:@"filename.h" toStore:store];
[parser parseObjectsFromString:@"@interface MyClass @property (weak) IBOutlet id<Protocol> delegate; @end" sourceFile:@"filename.h" toStore:store];
// verify
GBClassData *class = [[store classes] anyObject];
NSArray *methods = [[class methods] methods];
assertThatInteger([methods count], equalToInteger(1));
[self assertMethod:[methods objectAtIndex:0] matchesPropertyComponents:@"weak", @"IBOutlet", @"id", @"delegate", nil];
[self assertMethod:[methods objectAtIndex:0] matchesPropertyComponents:@"weak", @"IBOutlet", @"id", @"<", @"Protocol", @">", @"delegate", nil];
}

- (void)testParseObjectsFromString_shouldRegisterBlockPropertyDefinition {
Expand Down

0 comments on commit 00d7b13

Please sign in to comment.