Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
Bot releases are hidden (Show)
Published by AliSoftware almost 9 years ago
isMethodGET()
, isMethodPUT()
, isMethodPOST()
and isMethodDELETE()
to the Swift
helpers.tvOS
and watchOS
platforms to the Swift
subspec.Published by AliSoftware almost 9 years ago
Published by AliSoftware almost 9 years ago
OHHTTPStubsResponse
s from NSURL
s that represent file system resources (@MaxGabriel, #129)Published by AliSoftware about 9 years ago
Published by AliSoftware about 9 years ago
Swift
subspec that adds helper global functions to ease & make more compact the use of OHHTTPStubs
from Swift 2.0 (#111)If you're using
OHHTTPStubs
in a Swift 2.0 project, it's recommended to addpod 'OHHTTPStubs/Swift
to yourPodfile
so you can use those handy helpers.
Published by AliSoftware about 9 years ago
OHHTTPStubs
spec has been splitted into multiple subspecs:
pod 'OHHTTPStubs'
in your Podfile
) contains the subspecs Core
, NSURLSession
, JSON
& OHPathHelpers
(so that it matches the features that most people use).HTTPMessage
and Mocktail
(which are opt-in because used by much less people). If you want to use them, you'll need to request them explicitly in your Podfile
using pod 'OHHTTPStubs/Mocktail
for example.NSBundle
, so it's worth testing in that context too)
Published by AliSoftware over 9 years ago
Published by AliSoftware over 9 years ago
NSURLProtocol
subclass calling NSURLProtocolClient
callbacks from wrong thread. (@nsprogrammer, #96)Published by AliSoftware over 9 years ago
OHPathHelpers.h
, for Swift compatibility (#100).XCTestExpectation
subspec that was added for Xcode 5 support — Now that Xcode 6 is widely adopted, you shouldn't need this anymore.Published by AliSoftware over 9 years ago
Published by AliSoftware over 9 years ago
git submodule
used for Unit Tests against AFNetworking — it is now imported using CocoaPods and only for the lib's Unit Tests targets (@corinnekrych, #90)Published by AliSoftware over 9 years ago
Published by AliSoftware over 9 years ago
NS_DESIGNATED_INITIALIZER
macro on designated initializer methods (#79)Published by AliSoftware over 9 years ago
application/json
instead of text/json
in README
's example (#75)responseWithFileAtPath:statusCode:headers:
but the file at the specified path is empty)Published by AliSoftware over 9 years ago
DEFINES_MODULE
Flag to be easily imported in Swift (#74)(I also moved Travis-CI build system so it now uses xcpretty
instead of xctool
to run Unit Tests)
Published by AliSoftware over 9 years ago
NSException
was raised in the response blockOHHTTPStubs/XCTestExpectation
conditional compilation in Xcode 6.0 & OSX SDK.XCTextExpectation
already anyway)
Published by AliSoftware over 9 years ago
XCTestExpectation
subspec containing my own implementation for Xcode 5 supportPublished by AliSoftware about 10 years ago