Skip to content

Commit

Permalink
move XCTest extension to separate folder, add subspec
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Jan 18, 2015
1 parent c1bbff1 commit a06d63a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
6 changes: 5 additions & 1 deletion EasyMapping.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "EasyMapping"
s.version = "0.9.0"
s.version = "0.10.0"
s.summary = "The easiest way to map data from your webservice."
s.homepage = "https://github.com/lucasmedeirosleite/EasyMapping"

Expand All @@ -19,4 +19,8 @@ Pod::Spec.new do |s|

s.source_files = 'EasyMapping/*.{h,m}'

s.subspec 'XCTest' do |xctest|
xctest.frameworks = 'XCTest'
xctest.source_files = 'XCTest+EasyMapping/*.{h,m}'
end
end
14 changes: 8 additions & 6 deletions EasyMappingExample/EasyMappingExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
097A5C551A670DFF00CB6CE3 /* XCTestCase+EasyMapping.m in Sources */ = {isa = PBXBuildFile; fileRef = 097A5C541A670DFF00CB6CE3 /* XCTestCase+EasyMapping.m */; };
097A5C5C1A67126900CB6CE3 /* EKMappingTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = 097A5C5B1A67126900CB6CE3 /* EKMappingTestCase.m */; };
18BD8D6281D14C038CC3F308 /* libPods-MacOS Benchmark.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4375CE2EA4B0479395A606A4 /* libPods-MacOS Benchmark.a */; };
550CE75226AD40059EA2F789 /* libPods-iOS Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0FEA1524818F4DC5B8950951 /* libPods-iOS Tests.a */; };
Expand Down Expand Up @@ -269,15 +268,15 @@
9AC1321D1A2CA193001ED491 /* PersonsWithSamePhones.json in Resources */ = {isa = PBXBuildFile; fileRef = 9AC1321C1A2CA193001ED491 /* PersonsWithSamePhones.json */; };
9AC1321E1A2CA193001ED491 /* PersonsWithSamePhones.json in Resources */ = {isa = PBXBuildFile; fileRef = 9AC1321C1A2CA193001ED491 /* PersonsWithSamePhones.json */; };
9AE54FE8190BDEF5003A3B56 /* EasyMappingExample.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 9AE54FE5190BD9B5003A3B56 /* EasyMappingExample.xcdatamodeld */; };
9AFC96A61A6BF850008A295D /* XCTestCase+EasyMapping.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AFC96A51A6BF850008A295D /* XCTestCase+EasyMapping.m */; };
9AFC96A71A6BF850008A295D /* XCTestCase+EasyMapping.m in Sources */ = {isa = PBXBuildFile; fileRef = 9AFC96A51A6BF850008A295D /* XCTestCase+EasyMapping.m */; };
9F05E19A84E8447EA462A2FD /* libPods-OS X Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DA44053093DA41E7ADB1CBE2 /* libPods-OS X Tests.a */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
02FF772618E32249002282D3 /* iOS Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "iOS Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
07797FA26639AF90E877FABF /* Pods-MacOS Benchmark.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MacOS Benchmark.release.xcconfig"; path = "Pods/Target Support Files/Pods-MacOS Benchmark/Pods-MacOS Benchmark.release.xcconfig"; sourceTree = "<group>"; };
094E08F3DC3F4C88A8E2FBA5 /* libPods-iOS Benchmark.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-iOS Benchmark.a"; sourceTree = BUILT_PRODUCTS_DIR; };
097A5C531A670DFF00CB6CE3 /* XCTestCase+EasyMapping.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "XCTestCase+EasyMapping.h"; sourceTree = "<group>"; };
097A5C541A670DFF00CB6CE3 /* XCTestCase+EasyMapping.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "XCTestCase+EasyMapping.m"; sourceTree = "<group>"; };
097A5C5B1A67126900CB6CE3 /* EKMappingTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EKMappingTestCase.m; sourceTree = "<group>"; };
0FEA1524818F4DC5B8950951 /* libPods-iOS Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-iOS Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
1CAE9849457872E6F5681E97 /* Pods-OS X Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OS X Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-OS X Tests/Pods-OS X Tests.debug.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -410,6 +409,8 @@
9AE54FE2190BD91A003A3B56 /* EKManagedObjectMapping.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EKManagedObjectMapping.h; sourceTree = "<group>"; };
9AE54FE3190BD91A003A3B56 /* EKManagedObjectMapping.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EKManagedObjectMapping.m; sourceTree = "<group>"; };
9AE54FE6190BD9B5003A3B56 /* EasyMappingExample.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = EasyMappingExample.xcdatamodel; sourceTree = "<group>"; };
9AFC96A41A6BF850008A295D /* XCTestCase+EasyMapping.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "XCTestCase+EasyMapping.h"; path = "../XCTest+EasyMapping/XCTestCase+EasyMapping.h"; sourceTree = "<group>"; };
9AFC96A51A6BF850008A295D /* XCTestCase+EasyMapping.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "XCTestCase+EasyMapping.m"; path = "../XCTest+EasyMapping/XCTestCase+EasyMapping.m"; sourceTree = "<group>"; };
9E9BD3814FE20F5C7E01D5C1 /* Pods-MacOS Benchmark.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MacOS Benchmark.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MacOS Benchmark/Pods-MacOS Benchmark.debug.xcconfig"; sourceTree = "<group>"; };
A7E98E6E1DB90FE1A193665A /* Pods-iOS Benchmark.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS Benchmark.release.xcconfig"; path = "Pods/Target Support Files/Pods-iOS Benchmark/Pods-iOS Benchmark.release.xcconfig"; sourceTree = "<group>"; };
A9D16CF616F2B2770003759B /* EasyMapping.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EasyMapping.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -708,8 +709,8 @@
A9D16D0316F2B2770003759B /* EKTransformer.m */,
9AA7CED5191FCFFE00608262 /* NSArray+FlattenArray.h */,
9AA7CED6191FCFFE00608262 /* NSArray+FlattenArray.m */,
097A5C531A670DFF00CB6CE3 /* XCTestCase+EasyMapping.h */,
097A5C541A670DFF00CB6CE3 /* XCTestCase+EasyMapping.m */,
9AFC96A41A6BF850008A295D /* XCTestCase+EasyMapping.h */,
9AFC96A51A6BF850008A295D /* XCTestCase+EasyMapping.m */,
);
name = Helpers;
sourceTree = "<group>";
Expand Down Expand Up @@ -1272,9 +1273,9 @@
9A130249190BFEF30060A25C /* EKPropertyHelper.m in Sources */,
9A4511D4191646C9006E6022 /* Plane.m in Sources */,
9A45118A191646B2006E6022 /* ManagedPerson.m in Sources */,
097A5C551A670DFF00CB6CE3 /* XCTestCase+EasyMapping.m in Sources */,
9A4511D8191646C9006E6022 /* Seaplane.m in Sources */,
9A4511FF191646F7006E6022 /* EKSerializerSpec.m in Sources */,
9AFC96A61A6BF850008A295D /* XCTestCase+EasyMapping.m in Sources */,
9A4511C0191646C9006E6022 /* Finger.m in Sources */,
9A4511FB191646F7006E6022 /* EKPropertyHelperSpec.m in Sources */,
9AA7CEBF191E555300608262 /* EKManagedObjectMapper.m in Sources */,
Expand Down Expand Up @@ -1336,6 +1337,7 @@
9A210F351944B10B00871071 /* CommentObject.m in Sources */,
9A4511F4191646F7006E6022 /* EKMapperSpec.m in Sources */,
9A13024E190BFEF30060A25C /* EKObjectMapping.m in Sources */,
9AFC96A71A6BF850008A295D /* XCTestCase+EasyMapping.m in Sources */,
9A170333194C820200682F00 /* EKRelationshipMapping.m in Sources */,
9A13024C190BFEF30060A25C /* EKPropertyMapping.m in Sources */,
9AA7CECC191E62A100608262 /* EKCoreDataImporter.m in Sources */,
Expand Down
11 changes: 0 additions & 11 deletions EasyMappingExample/Tests/XCTests/EKMappingTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#import "MappingProvider.h"
#import "CMFixture.h"
#import "XCTestCase+EasyMapping.h"

#import "Car.h"
#import "Person.h"

Expand All @@ -20,16 +19,6 @@ @interface EKMappingTestCase : XCTestCase

@implementation EKMappingTestCase

- (void)setUp {
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}

- (void)testSimpleMapping
{
NSDictionary *externalRepresentation = [CMFixture buildUsingFixture:@"Car"];
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a06d63a

Please sign in to comment.