Permalink
Browse files

Fix for spec names with too many spaces

  • Loading branch information...
nheagy committed Apr 16, 2012
1 parent 7d23f31 commit 01e8b4baac8c5c61ca20580dccb42bd1033779a3
Showing with 4 additions and 0 deletions.
  1. +4 −0 Kiwi/KWSpec.m
View
@@ -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.