Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #131 from rhgills/master
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
Marin Usalj committed Mar 4, 2014
2 parents 3d89b60 + 9e82aa0 commit 324ada0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -21,7 +21,7 @@ ci_test:
$(XCODEBUILD) test | xcpretty -c; exit ${PIPESTATUS[0]}

test:
$(XCODEBUILD) test | tee xcodebuild.log | xcpretty -tc
set -o pipefail && $(XCODEBUILD) test | tee xcodebuild.log | xcpretty -tc

# Merge changes into deploy branch
update:
Expand Down
6 changes: 3 additions & 3 deletions Specs/Packages/ATZPackageTests.m
Expand Up @@ -99,7 +99,7 @@ void buildMockInstaller(KWMock *mockInstaller) {
__block NSString *progressMessage;
__block NSError *completionError;

void (^progressBlock)(NSString *) = ^(NSString *proggressMessage){ progressMessage = @"OH HAI!"; };
void (^progressBlock)(NSString *, CGFloat) = ^(NSString *proggressMessage, CGFloat progress){ progressMessage = @"OH HAI!"; };
void (^completionBlock)(NSError *) = ^(NSError *failure){ completionError = [NSError errorWithDomain:@"MEH" code:666 userInfo:nil]; };

beforeEach(^{
Expand All @@ -116,7 +116,7 @@ void buildMockInstaller(KWMock *mockInstaller) {
});

it(@"forwards install to installer", ^{
[package installWithProgressMessage:progressBlock completion:completionBlock];
[package installWithProgress:progressBlock completion:completionBlock];
[[progressMessage should] equal:@"OH HAI!"];
[[completionError should] equal:[NSError errorWithDomain:@"MEH" code:666 userInfo:nil]];
});
Expand All @@ -127,7 +127,7 @@ void buildMockInstaller(KWMock *mockInstaller) {
});

it(@"forwards update to installer", ^{
[package updateWithProgressMessage:progressBlock completion:completionBlock];
[package updateWithProgress:progressBlock completion:completionBlock];
[[progressMessage should] equal:@"OH HAI!"];
[[completionError should] equal:[NSError errorWithDomain:@"MEH" code:666 userInfo:nil]];
});
Expand Down

0 comments on commit 324ada0

Please sign in to comment.