Custom refernce now can include spaces and numbers and will be expanded correctly

This commit is contained in:
michael starke
2014-12-11 13:54:44 +01:00
parent 13e3fafcf8
commit a995d20d3b
2 changed files with 3 additions and 3 deletions

View File

@@ -120,8 +120,8 @@
NSArray *commands = [MPAutotypeCommand commandsForContext:context];
XCTAssertEqual(commands.count, 1);
MPAutotypePaste *paste = commands[0];
NSString *result = [[NSString alloc] initWithFormat:@"%@%@", numberAttribute.value, self.entry.username];
XCTAssertEqual(paste.pasteData, result);
NSString *result = [[NSString alloc] initWithFormat:@"%@%@%@%@", numberAttribute.value, self.entry.username, self.entry.username, self.entry.username];
XCTAssertEqualObjects(paste.pasteData, result);
}