Skip to content
Browse files

Fix for spec names with too many spaces

  • Loading branch information...
1 parent 7d23f31 commit 01e8b4baac8c5c61ca20580dccb42bd1033779a3 @nheagy nheagy committed Apr 16, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 Kiwi/KWSpec.m
View
4 Kiwi/KWSpec.m
@@ -52,6 +52,10 @@ - (NSString *)description
NSArray *words = [name componentsSeparatedByString:@" "];
name = @"";
for (NSString *word in words) {
+ if ([word length] < 1)
+ {
+ continue;
+ }
name = [name stringByAppendingString:[[word substringToIndex:1] uppercaseString]];
name = [name stringByAppendingString:[word substringFromIndex:1]];
}

0 comments on commit 01e8b4b

Please sign in to comment.
Something went wrong with that request. Please try again.