Updated Branches: refs/heads/master dac34c465 -> ddc14b1e3
Fix unit tests not working due to lack of a command delegate. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/ddc14b1e Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/ddc14b1e Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/ddc14b1e Branch: refs/heads/master Commit: ddc14b1e385d15f6f65c0a6de0f5538b82ef1ec8 Parents: 69c1375 Author: Andrew Grieve <[email protected]> Authored: Wed Nov 7 11:33:01 2012 -0500 Committer: Andrew Grieve <[email protected]> Committed: Wed Nov 7 11:33:01 2012 -0500 ---------------------------------------------------------------------- CordovaLibTests/CDVFileTransferTests.m | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/ddc14b1e/CordovaLibTests/CDVFileTransferTests.m ---------------------------------------------------------------------- diff --git a/CordovaLibTests/CDVFileTransferTests.m b/CordovaLibTests/CDVFileTransferTests.m index c8071a7..7488a5a 100644 --- a/CordovaLibTests/CDVFileTransferTests.m +++ b/CordovaLibTests/CDVFileTransferTests.m @@ -20,6 +20,7 @@ #import <SenTestingKit/SenTestingKit.h> #import "CDV.h" +#import "CDVCommandDelegateImpl.h" static NSString* const kDummyArgCallbackId = @"cid0"; static NSString* const kDummyArgFileKey = @"image.jpg"; @@ -55,6 +56,7 @@ static NSData *readStream(NSInputStream* stream) NSMutableArray* _arguments; CDVFileTransfer* _fileTransfer; NSData* _dummyFileData; + CDVCommandDelegateImpl* _commandDelegate; } @end @@ -68,7 +70,9 @@ static NSData *readStream(NSInputStream* stream) kDummyArgTarget, kDummyArgServer, kDummyArgFileKey, [NSNull null], [NSNull null], [NSNull null], [NSNull null], [NSNull null], [NSNull null], nil]; _dummyFileData = [kDummyFileContents dataUsingEncoding:NSUTF8StringEncoding]; + _commandDelegate = [[CDVCommandDelegateImpl alloc] initWithViewController:nil]; _fileTransfer = [[CDVFileTransfer alloc] init]; + _fileTransfer.commandDelegate = _commandDelegate; } - (void)tearDown @@ -76,6 +80,7 @@ static NSData *readStream(NSInputStream* stream) _arguments = nil; _dummyFileData = nil; _fileTransfer = nil; + _commandDelegate = nil; [super tearDown]; }
