This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler' | |
Bundler.require | |
desc "Check there are no build settings in the project file" | |
task :check_settings do | |
projects = Dir.glob('*.xcodeproj').map do |project_file| | |
Xcodeproj::Project.open(project_file) | |
end | |
projects.each do |project| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Check that there are no overridden build settings in Xcode | |
# This is hacky, if I could work out how to parse the project file I'd do it better | |
# - SG | |
for PROJECT in *.xcodeproj; do | |
PROJECT_FILE_PATH=$PROJECT/project.pbxproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing that the mocks and stubs in Kiwi work correctly for class methods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Kiwi.h" | |
@interface MyFactory : NSObject | |
+ (id)makeThingsCalled:(NSString *)name; | |
@end | |
@implementation MyFactory | |
+ (id)makeThingsCalled:(NSString *)name; | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
# Copyright 2008 Apple Inc. | |
# All rights reserved. | |
# | |
# iPhoneSimulator platform | |
# This script runs all of the unit tests for the target test bundle specified by the passed-in environment. | |
# This script is generally intended to be invoked by ${DEVELOPER_TOOLS_DIR}/RunUnitTests. The interface or location of this script may change in future releases. | |
## | |
# |