Latest 0.2.0
Homepage https://github.com/JuanjoArreola/MockingJ
License MIT
Platforms ios 8.0, requires ARC
Authors

HTTP stubs for Swift

Usage

Change (or use) the URLSession of Interceptor to make requests:

UserRepository.shared.session = Interceptor.session

Add stubs to the Interceptor:

let user = AuthUser(id: 1, token: "sjzfbsfhjzk")
Interceptor.add(stub: try PathStub(path: "/users/login", object: user, method: "POST"))

Latest podspec

{
    "name": "MockingJ",
    "version": "0.2.0",
    "summary": "HTTP Stubs for swift",
    "homepage": "https://github.com/JuanjoArreola/MockingJ",
    "license": "MIT",
    "authors": {
        "Juanjo": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JuanjoArreola/MockingJ.git",
        "tag": "0.2.0"
    },
    "source_files": "Sources/*.swift",
    "requires_arc": true,
    "swift_version": "4.2"
}

Pin It on Pinterest

Share This