mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-06-12 00:35:21 +08:00
27 lines
603 B
Objective-C
27 lines
603 B
Objective-C
//
|
|
// RKJSONParserJSONKitSpec.m
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 7/6/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKSpecEnvironment.h"
|
|
#import "RKJSONParserJSONKit.h"
|
|
|
|
@interface RKJSONParserJSONKitSpec : RKSpec
|
|
|
|
@end
|
|
|
|
@implementation RKJSONParserJSONKitSpec
|
|
|
|
- (void)itShouldParseEmptyResults {
|
|
NSError* error = nil;
|
|
RKJSONParserJSONKit* parser = [[RKJSONParserJSONKit new] autorelease];
|
|
id parsingResult = [parser objectFromString:nil error:&error];
|
|
assertThat(parsingResult, is(equalTo(nil)));
|
|
assertThat(error, is(equalTo(nil)));
|
|
}
|
|
|
|
@end
|