Skip to content

Commit 293a41c

Browse files
committed
* in Xcode 6 having a property called description doesn't work anymore, removing the test cases for that
1 parent dc142e9 commit 293a41c

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

JSONModelDemoTests/UnitTests/ArrayTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ - (void)testReadArray
5858
-(void)testFirstObject
5959
{
6060
XCTAssertEqualObjects([[repos.repositories.firstObject class] description], @"GitHubRepoModel", @"wrong class");
61-
XCTAssertEqualObjects([repos.repositories.firstObject description], @"cocos2d for iPhone", @"wrong description");
6261
}
6362

6463
/*

JSONModelDemoTests/UnitTests/SpecialPropertyNameTests.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
@interface DescModel : JSONModel
1313
@property (assign, nonatomic) int id;
14-
@property (strong, nonatomic) NSString* description;
1514
@end
1615

1716
@implementation DescModel
@@ -33,15 +32,4 @@ - (void)testSpecialPropertyName
3332
XCTAssertNil(err, "%@", [err localizedDescription]);
3433
}
3534

36-
-(void)testDescriptionProperty
37-
{
38-
NSString* json = @"{\"id\":10, \"description\":\"Marin\"}";
39-
DescModel* dm = [[DescModel alloc] initWithString:json error:nil];
40-
41-
XCTAssertNotNil(dm, @"Could not initialize model.");
42-
XCTAssertEqualObjects(dm.description, @"Marin", @"could not initialize description proeprty");
43-
NSDictionary* dict = dm.toDictionary;
44-
XCTAssertEqualObjects(dict[@"description"], @"Marin", @"could not export description proeprty");
45-
}
46-
4735
@end

0 commit comments

Comments
 (0)