lanekit 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTZmNmMwOWVkZjljMmNjYmUyYzkzZWJhZThkOTJiOWIwYWRjNWJjZA==
4
+ ZWVmYzA2ZTdlNmQ4ZmEzNzQxYTIxMTUwMjJmOTc2MTIwYjI5OTNiZA==
5
5
  data.tar.gz: !binary |-
6
- YWM1MjJlNGZkYWVlNzRmZjdiOGNiY2UwNTg0M2Y0YTg2MWE5YWM2Nw==
6
+ OGRlOTdmOTY3OGVmYTZlN2RmOWM4OTNjYTVkMmZiN2ExNWFjYzNmNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWYxZTg1Yzk0MGRmMjhjNjdkMjkxNWI2ZjA2NTA3NDMzMWM3YmMxZGQ5M2My
10
- ZmE3NzgwMGMwZWVmMmUxZDY2MTc1ZjRkYTJhZjY3M2JkMDlkNjc0MzI4YzQx
11
- MWVhZWViZTM1NjVmYmQyZDRhODdjYjc5NTQ3MDViZDk5NGFjMjM=
9
+ MTEzYmVmZjM3ZWViN2RjNWJkYmQ1ZGYxYTk3YjdiZjFjNmQyMGI3OWVhOTcy
10
+ NjE0ZWI0YjgyZTY0ODk5M2FlOGE5OWZhYzgzNjEwZTQxM2UyYzQ0Y2IzNzlk
11
+ ZmMwZjM5M2RhYTkyM2M0YzE1YWY3ZTU2YjFhYjllYzhjMDEyZGM=
12
12
  data.tar.gz: !binary |-
13
- ZThiZGZkNGYyYjEyOGY1YTlhMzhjN2ViMGVjODQxZWYzM2VjNTU5ZDNlMzQy
14
- OTI0ZWJmNmE2ZjVmYzhjOTI2ZmYwYTk5M2U0ZDY0NDE1NDczZjlhNjUxNDIz
15
- ZWYwOGI3NmRhODAzZDZlZDY0MjYxNmE3MTMzOTk1YmNiNDA5MzQ=
13
+ YmE5NzYzYWQxNDM1YWM0YzQ1N2EyYjViMzcyMDc0NmZhNjNjODE2NjJkYjA1
14
+ NzVkY2JmMDI0OGI1MzRmNDM0MGRjYTM3ODQwMGUxODMwNjY4NjM4YjVjY2My
15
+ NDk4NWM5M2Q5NzdlMzdmOWQ1OGJlNjIyMzIxYTA3MzJjOWI0MzQ=
data/README.md CHANGED
@@ -212,36 +212,36 @@ and here is part of a unit test that was generated in Models/VideoTest.m by Lane
212
212
  - (void)testVideoNewOne
213
213
  {
214
214
  Video *video = VideoFixtures.one;
215
- STAssertNotNil(video, @"video is nil");
216
-
217
- STAssertTrue([video.headline isEqualToString:@"MyString"], @"headline not correct value");
218
- STAssertTrue([video.duration isEqualToString:@"MyString"], @"duration not correct value");
219
- STAssertTrue(video.id.integerValue == [NSNumber numberWithInteger:1].integerValue, @"id not [NSNumber numberWithInteger:1]");
220
- STAssertTrue([video.image isEqualToString:@"MyString"], @"image not correct value");
221
- STAssertNotNil(video.itemDate, @"itemDate is nil");
222
- STAssertTrue([video.location isEqualToString:@"MyString"], @"location not correct value");
215
+ XCTAssertNotNil(video, @"video is nil");
216
+
217
+ XCTAssertTrue([video.headline isEqualToString:@"MyString"], @"headline not correct value");
218
+ XCTAssertTrue([video.duration isEqualToString:@"MyString"], @"duration not correct value");
219
+ XCTAssertTrue(video.id.integerValue == [NSNumber numberWithInteger:1].integerValue, @"id not [NSNumber numberWithInteger:1]");
220
+ XCTAssertTrue([video.image isEqualToString:@"MyString"], @"image not correct value");
221
+ XCTAssertNotNil(video.itemDate, @"itemDate is nil");
222
+ XCTAssertTrue([video.location isEqualToString:@"MyString"], @"location not correct value");
223
223
  }
224
224
 
225
225
  - (void)testVideoNewTwo
226
226
  {
227
227
  Video *video = VideoFixtures.two;
228
- STAssertNotNil(video, @"video is nil");
229
-
230
- STAssertTrue([video.headline isEqualToString:@"MyString"], @"headline not correct value");
231
- STAssertTrue([video.duration isEqualToString:@"MyString"], @"duration not correct value");
232
- STAssertTrue(video.id.integerValue == [NSNumber numberWithInteger:1].integerValue, @"id not [NSNumber numberWithInteger:1]");
233
- STAssertTrue([video.image isEqualToString:@"MyString"], @"image not correct value");
234
- STAssertNotNil(video.itemDate, @"itemDate is nil");
235
- STAssertTrue([video.location isEqualToString:@"MyString"], @"location not correct value");
228
+ XCTAssertNotNil(video, @"video is nil");
229
+
230
+ XCTAssertTrue([video.headline isEqualToString:@"MyString"], @"headline not correct value");
231
+ XCTAssertTrue([video.duration isEqualToString:@"MyString"], @"duration not correct value");
232
+ XCTAssertTrue(video.id.integerValue == [NSNumber numberWithInteger:1].integerValue, @"id not [NSNumber numberWithInteger:1]");
233
+ XCTAssertTrue([video.image isEqualToString:@"MyString"], @"image not correct value");
234
+ XCTAssertNotNil(video.itemDate, @"itemDate is nil");
235
+ XCTAssertTrue([video.location isEqualToString:@"MyString"], @"location not correct value");
236
236
  }
237
237
 
238
238
  - (void)testMapping
239
239
  {
240
240
  RKObjectMapping *requestMapping = [Video requestMapping];
241
- STAssertNotNil(requestMapping, @"[Video requestMapping] returned nil.");
241
+ XCTAssertNotNil(requestMapping, @"[Video requestMapping] returned nil.");
242
242
 
243
243
  RKObjectMapping *responseMapping = [Video responseMapping];
244
- STAssertNotNil(responseMapping, @"[Video responseMapping] returned nil.");
244
+ XCTAssertNotNil(responseMapping, @"[Video responseMapping] returned nil.");
245
245
  }
246
246
  ```
247
247
 
data/lib/lanekit/new.rb CHANGED
@@ -76,8 +76,9 @@ module LaneKit
76
76
  def change_bundle_id(bundle_id)
77
77
  plistbuddy_path = '/usr/libexec/PlistBuddy'
78
78
  plist_file = "#{@app_name}-Info.plist"
79
- info_plist_path = File.join(@project_path, File.join("#{@app_name}", plist_file))
80
- system("#{plistbuddy_path} -c \"Set :CFBundleIdentifier #{bundle_id}\" #{info_plist_path}")
79
+ supporting_files = File.join(@project_path, File.join("#{@app_name}", "Supporting Files"))
80
+ info_plist_path = File.join(supporting_files, plist_file)
81
+ system("#{plistbuddy_path} -c \"Set :CFBundleIdentifier #{bundle_id}\" \"#{info_plist_path}\"")
81
82
  end
82
83
 
83
84
  def add_cocoapods
@@ -1,3 +1,3 @@
1
1
  module LaneKit
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
data/lib/lanekit.rb CHANGED
@@ -161,17 +161,17 @@ module LaneKit
161
161
 
162
162
  def self.objective_c_type_unit_test_assert(model_name, name, type_name)
163
163
  if type_name == "array"
164
- assert = "STAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
164
+ assert = "XCTAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
165
165
  elsif type_name == "date"
166
- assert = "STAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
166
+ assert = "XCTAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
167
167
  elsif type_name == "integer"
168
- assert = "STAssertTrue(#{model_name}.#{name}.integerValue == #{self.objective_c_type_fixture_value(type_name)}.integerValue, @\"#{name} not #{self.objective_c_type_fixture_value(type_name)}\")"
168
+ assert = "XCTAssertTrue(#{model_name}.#{name}.integerValue == #{self.objective_c_type_fixture_value(type_name)}.integerValue, @\"#{name} not #{self.objective_c_type_fixture_value(type_name)}\")"
169
169
  elsif type_name == "string"
170
- assert = "STAssertTrue([#{model_name}.#{name} isEqualToString:#{self.objective_c_type_fixture_value(type_name)}], @\"#{name} not correct value\")"
170
+ assert = "XCTAssertTrue([#{model_name}.#{name} isEqualToString:#{self.objective_c_type_fixture_value(type_name)}], @\"#{name} not correct value\")"
171
171
  elsif type_name
172
- assert = "STAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
172
+ assert = "XCTAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
173
173
  else
174
- assert = "STAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
174
+ assert = "XCTAssertNotNil(#{model_name}.#{name}, @\"#{name} is nil\")"
175
175
  end
176
176
  assert
177
177
  end
@@ -17,12 +17,12 @@
17
17
  466CCC26181CA7CA0028AD47 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 466CCC22181CA7CA0028AD47 /* Main_iPad.storyboard */; };
18
18
  466CCC27181CA7CA0028AD47 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 466CCC24181CA7CA0028AD47 /* Main_iPhone.storyboard */; };
19
19
  46B91530182595FA00DC8651 /* placeholder@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 46B9152F182595FA00DC8651 /* placeholder@2x.png */; };
20
- 46C411901824966400B19AB2 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4688500518248B3600EDAAA8 /* SenTestingKit.framework */; };
21
20
  46C411911824966400B19AB2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 461263C2180B401300771CF8 /* Foundation.framework */; };
22
21
  46C411921824966400B19AB2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 461263C6180B401300771CF8 /* UIKit.framework */; };
23
22
  46C411A21824977D00B19AB2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 461263E4180B401300771CF8 /* InfoPlist.strings */; };
24
23
  46C411A51824995C00B19AB2 /* lanekit-ios-projectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 46C411A41824995C00B19AB2 /* lanekit-ios-projectTests.m */; };
25
24
  46F02272183F752700287EE2 /* NSObject+LKConventions.m in Sources */ = {isa = PBXBuildFile; fileRef = 46F02271183F752700287EE2 /* NSObject+LKConventions.m */; };
25
+ 46FE931D18F8D27A00EC41C6 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 46FE931B18F8D15B00EC41C6 /* XCTest.framework */; };
26
26
  /* End PBXBuildFile section */
27
27
 
28
28
  /* Begin PBXContainerItemProxy section */
@@ -51,13 +51,13 @@
51
51
  461263E5180B401300771CF8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
52
52
  466CCC23181CA7CA0028AD47 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Resources/Base.lproj/Main_iPad.storyboard; sourceTree = "<group>"; };
53
53
  466CCC25181CA7CA0028AD47 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Resources/Base.lproj/Main_iPhone.storyboard; sourceTree = "<group>"; };
54
- 4688500518248B3600EDAAA8 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
55
54
  46B9152F182595FA00DC8651 /* placeholder@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "placeholder@2x.png"; path = "Resources/placeholder@2x.png"; sourceTree = "<group>"; };
56
- 46C4118F1824966400B19AB2 /* lanekit-ios-projectTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "lanekit-ios-projectTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
55
+ 46C4118F1824966400B19AB2 /* lanekit-ios-projectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "lanekit-ios-projectTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
57
56
  46C411A41824995C00B19AB2 /* lanekit-ios-projectTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "lanekit-ios-projectTests.m"; sourceTree = "<group>"; };
58
57
  46C411A618249A9600B19AB2 /* lanekit-ios-projectTests-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "lanekit-ios-projectTests-Prefix.pch"; sourceTree = "<group>"; };
59
58
  46F02270183F752700287EE2 /* NSObject+LKConventions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSObject+LKConventions.h"; path = "Helpers/NSObject+LKConventions.h"; sourceTree = "<group>"; };
60
59
  46F02271183F752700287EE2 /* NSObject+LKConventions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSObject+LKConventions.m"; path = "Helpers/NSObject+LKConventions.m"; sourceTree = "<group>"; };
60
+ 46FE931B18F8D15B00EC41C6 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
61
61
  /* End PBXFileReference section */
62
62
 
63
63
  /* Begin PBXFrameworksBuildPhase section */
@@ -75,8 +75,8 @@
75
75
  isa = PBXFrameworksBuildPhase;
76
76
  buildActionMask = 2147483647;
77
77
  files = (
78
- 46C411901824966400B19AB2 /* SenTestingKit.framework in Frameworks */,
79
78
  46C411921824966400B19AB2 /* UIKit.framework in Frameworks */,
79
+ 46FE931D18F8D27A00EC41C6 /* XCTest.framework in Frameworks */,
80
80
  46C411911824966400B19AB2 /* Foundation.framework in Frameworks */,
81
81
  );
82
82
  runOnlyForDeploymentPostprocessing = 0;
@@ -98,7 +98,7 @@
98
98
  isa = PBXGroup;
99
99
  children = (
100
100
  461263BF180B401300771CF8 /* lanekit-ios-project.app */,
101
- 46C4118F1824966400B19AB2 /* lanekit-ios-projectTests.octest */,
101
+ 46C4118F1824966400B19AB2 /* lanekit-ios-projectTests.xctest */,
102
102
  );
103
103
  name = Products;
104
104
  sourceTree = "<group>";
@@ -109,7 +109,7 @@
109
109
  461263C2180B401300771CF8 /* Foundation.framework */,
110
110
  461263C4180B401300771CF8 /* CoreGraphics.framework */,
111
111
  461263C6180B401300771CF8 /* UIKit.framework */,
112
- 4688500518248B3600EDAAA8 /* SenTestingKit.framework */,
112
+ 46FE931B18F8D15B00EC41C6 /* XCTest.framework */,
113
113
  );
114
114
  name = Frameworks;
115
115
  sourceTree = "<group>";
@@ -259,7 +259,7 @@
259
259
  );
260
260
  name = "lanekit-ios-projectTests";
261
261
  productName = "lanekit-ios-project Tests";
262
- productReference = 46C4118F1824966400B19AB2 /* lanekit-ios-projectTests.octest */;
262
+ productReference = 46C4118F1824966400B19AB2 /* lanekit-ios-projectTests.xctest */;
263
263
  productType = "com.apple.product-type.bundle";
264
264
  };
265
265
  /* End PBXNativeTarget section */
@@ -269,7 +269,8 @@
269
269
  isa = PBXProject;
270
270
  attributes = {
271
271
  CLASSPREFIX = LK;
272
- LastUpgradeCheck = 0500;
272
+ LastTestingUpgradeCheck = 0510;
273
+ LastUpgradeCheck = 0510;
273
274
  ORGANIZATIONNAME = LaneKit;
274
275
  TargetAttributes = {
275
276
  46C4118E1824966400B19AB2 = {
@@ -389,7 +390,6 @@
389
390
  isa = XCBuildConfiguration;
390
391
  buildSettings = {
391
392
  ALWAYS_SEARCH_USER_PATHS = NO;
392
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
393
393
  CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
394
394
  CLANG_CXX_LIBRARY = "libc++";
395
395
  CLANG_ENABLE_MODULES = YES;
@@ -429,7 +429,6 @@
429
429
  isa = XCBuildConfiguration;
430
430
  buildSettings = {
431
431
  ALWAYS_SEARCH_USER_PATHS = NO;
432
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
433
432
  CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
434
433
  CLANG_CXX_LIBRARY = "libc++";
435
434
  CLANG_ENABLE_MODULES = YES;
@@ -496,7 +495,6 @@
496
495
  46C4119E1824966400B19AB2 /* Debug */ = {
497
496
  isa = XCBuildConfiguration;
498
497
  buildSettings = {
499
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
500
498
  BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/lanekit-ios-project.app/lanekit-ios-project";
501
499
  FRAMEWORK_SEARCH_PATHS = (
502
500
  "$(SDKROOT)/Developer/Library/Frameworks",
@@ -513,14 +511,13 @@
513
511
  IPHONEOS_DEPLOYMENT_TARGET = 7.0;
514
512
  PRODUCT_NAME = "$(TARGET_NAME)";
515
513
  TEST_HOST = "$(BUNDLE_LOADER)";
516
- WRAPPER_EXTENSION = octest;
514
+ WRAPPER_EXTENSION = xctest;
517
515
  };
518
516
  name = Debug;
519
517
  };
520
518
  46C4119F1824966400B19AB2 /* Release */ = {
521
519
  isa = XCBuildConfiguration;
522
520
  buildSettings = {
523
- ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
524
521
  BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/lanekit-ios-project.app/lanekit-ios-project";
525
522
  FRAMEWORK_SEARCH_PATHS = (
526
523
  "$(SDKROOT)/Developer/Library/Frameworks",
@@ -533,7 +530,7 @@
533
530
  IPHONEOS_DEPLOYMENT_TARGET = 7.0;
534
531
  PRODUCT_NAME = "$(TARGET_NAME)";
535
532
  TEST_HOST = "$(BUNDLE_LOADER)";
536
- WRAPPER_EXTENSION = octest;
533
+ WRAPPER_EXTENSION = xctest;
537
534
  };
538
535
  name = Release;
539
536
  };
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Scheme
3
- LastUpgradeVersion = "0500"
3
+ LastUpgradeVersion = "0510"
4
4
  version = "1.3">
5
5
  <BuildAction
6
6
  parallelizeBuildables = "YES"
@@ -28,16 +28,6 @@
28
28
  shouldUseLaunchSchemeArgsEnv = "YES"
29
29
  buildConfiguration = "Debug">
30
30
  <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "461263D9180B401300771CF8"
36
- BuildableName = "lanekit-ios-projectTests.xctest"
37
- BlueprintName = "lanekit-ios-project--Tests"
38
- ReferencedContainer = "container:lanekit-ios-project.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
31
  <TestableReference
42
32
  skipped = "NO">
43
33
  <BuildableReference
@@ -17,11 +17,6 @@
17
17
  <key>primary</key>
18
18
  <true/>
19
19
  </dict>
20
- <key>461263D9180B401300771CF8</key>
21
- <dict>
22
- <key>primary</key>
23
- <true/>
24
- </dict>
25
20
  <key>46C4118E1824966400B19AB2</key>
26
21
  <dict>
27
22
  <key>primary</key>
@@ -2,9 +2,9 @@
2
2
  // lanekit_ios_projectTests.m
3
3
  //
4
4
 
5
- #import <SenTestingKit/SenTestingKit.h>
5
+ #import <XCTest/XCTest.h>
6
6
 
7
- @interface lanekit_ios_projectTests : SenTestCase
7
+ @interface lanekit_ios_projectTests : XCTestCase
8
8
 
9
9
  @end
10
10
 
@@ -13,20 +13,18 @@
13
13
  - (void)setUp
14
14
  {
15
15
  [super setUp];
16
-
17
- // Set-up code here.
16
+ // Put setup code here. This method is called before the invocation of each test method in the class.
18
17
  }
19
18
 
20
19
  - (void)tearDown
21
20
  {
22
- // Tear-down code here.
23
-
21
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
24
22
  [super tearDown];
25
23
  }
26
24
 
27
25
  - (void)testExample
28
26
  {
29
- STAssertTrue(false, @"No test defined.");
27
+ XCTAssertTrue(true, @"No implementation for \"%s\"", __PRETTY_FUNCTION__);
30
28
  }
31
29
 
32
30
  @end
@@ -8,12 +8,14 @@
8
8
  <string>RelativeToDerivedData</string>
9
9
  <key>DerivedDataLocationStyle</key>
10
10
  <string>Default</string>
11
+ <key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
12
+ <true/>
11
13
  <key>IssueFilterStyle</key>
12
14
  <string>ShowActiveSchemeOnly</string>
13
15
  <key>LiveSourceIssuesEnabled</key>
14
16
  <true/>
15
17
  <key>SnapshotAutomaticallyBeforeSignificantChanges</key>
16
- <true/>
18
+ <false/>
17
19
  <key>SnapshotLocationStyle</key>
18
20
  <string>Default</string>
19
21
  </dict>
@@ -9,7 +9,7 @@
9
9
  // <%=config[:command]%>
10
10
  //
11
11
 
12
- #import <SenTestingKit/SenTestingKit.h>
12
+ #import <XCTest/XCTest.h>
13
13
 
14
- @interface <%=@class_name%>Test : SenTestCase
14
+ @interface <%=@class_name%>Test : XCTestCase
15
15
  @end
@@ -16,22 +16,20 @@
16
16
 
17
17
  - (void)setUp
18
18
  {
19
- [super setUp];
20
-
21
- // Set-up code here.
19
+ [super setUp];
20
+ // Put setup code here. This method is called before the invocation of each test method in the class.
22
21
  }
23
22
 
24
23
  - (void)tearDown
25
24
  {
26
- // Tear-down code here.
27
-
28
- [super tearDown];
25
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
26
+ [super tearDown];
29
27
  }
30
28
 
31
29
  - (void)test<%=@class_name%>NewOne
32
30
  {
33
31
  <%=@class_name%> *<%=@model_name%> = <%=@class_name%>Fixtures.one;
34
- STAssertNotNil(<%=@model_name%>, @"<%=@model_name%> is nil");
32
+ XCTAssertNotNil(<%=@model_name%>, @"<%=@model_name%> is nil");
35
33
 
36
34
  <% @attributes.each_with_index do |attribute, index| %><% if !attribute[:relationship] %> <%=attribute[:unit_test_assert]%>;<% end %>
37
35
  <% end %>}
@@ -39,7 +37,7 @@
39
37
  - (void)test<%=@class_name%>NewTwo
40
38
  {
41
39
  <%=@class_name%> *<%=@model_name%> = <%=@class_name%>Fixtures.two;
42
- STAssertNotNil(<%=@model_name%>, @"<%=@model_name%> is nil");
40
+ XCTAssertNotNil(<%=@model_name%>, @"<%=@model_name%> is nil");
43
41
 
44
42
  <% @attributes.each_with_index do |attribute, index| %><% if !attribute[:relationship] %> <%=attribute[:unit_test_assert]%>;<% end %>
45
43
  <% end %>}
@@ -47,10 +45,10 @@
47
45
  - (void)testMapping
48
46
  {
49
47
  RKObjectMapping *requestMapping = [<%=@class_name%> requestMapping];
50
- STAssertNotNil(requestMapping, @"[<%=@class_name%> requestMapping] returned nil.");
48
+ XCTAssertNotNil(requestMapping, @"[<%=@class_name%> requestMapping] returned nil.");
51
49
 
52
50
  RKObjectMapping *responseMapping = [<%=@class_name%> responseMapping];
53
- STAssertNotNil(responseMapping, @"[<%=@class_name%> responseMapping] returned nil.");
51
+ XCTAssertNotNil(responseMapping, @"[<%=@class_name%> responseMapping] returned nil.");
54
52
  }
55
53
 
56
54
  @end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lanekit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Larry Aasen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-19 00:00:00.000000000 Z
11
+ date: 2014-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods