Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaokang Zhao committed Jan 3, 2016
1 parent 463d37e commit c8f9668
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Classes/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.coloshine.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
7 changes: 6 additions & 1 deletion SKTagView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
682ABA621A36933300D57A1A /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0600;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = shiweifu;
TargetAttributes = {
682ABA691A36933300D57A1A = {
Expand Down Expand Up @@ -397,6 +397,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -460,6 +461,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Classes/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.coloshine.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = SKTagView;
USER_HEADER_SEARCH_PATHS = "\"${PROJECT_DIR}/Pods\"/**";
};
Expand All @@ -472,6 +474,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = Classes/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.coloshine.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = SKTagView;
USER_HEADER_SEARCH_PATHS = "\"${PROJECT_DIR}/Pods\"/**";
};
Expand All @@ -491,6 +494,7 @@
);
INFOPLIST_FILE = SKTagViewTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "weifu.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = SKTagViewTests;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SKTagView.app/SKTagView";
};
Expand All @@ -506,6 +510,7 @@
);
INFOPLIST_FILE = SKTagViewTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "weifu.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = SKTagViewTests;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SKTagView.app/SKTagView";
};
Expand Down
2 changes: 1 addition & 1 deletion SKTagViewTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>weifu.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
8 changes: 4 additions & 4 deletions SKTagViewTests/SKTagViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ - (void)testTagViewSetPadding {
}

- (void)testTagViewSetLineSpace {
self.tagView.lineSpace = 10;
XCTAssertEqual(self.tagView.lineSpace, 10);
self.tagView.lineSpacing = 10;
XCTAssertEqual(self.tagView.lineSpacing, 10);
}

- (void)testTagViewSetInsets {

self.tagView.insets = 10;
XCTAssertEqual(self.tagView.insets, 10);
self.tagView.interitemSpacing = 10;
XCTAssertEqual(self.tagView.interitemSpacing, 10);
}

- (void)testTagViewPreferredMaxLayoutWidth {
Expand Down

0 comments on commit c8f9668

Please sign in to comment.