                 ElloProvider_Specs.errorStatusCode = ErrorStatusCode(rawValue: expectedStatusCode)!
 
                 // optional values for 422
-                let expectedAttrs:[String:[String]]? = sharedExampleContext()["attrs"] as? [String:[String]]
-                let expectedMessages:[String]? = sharedExampleContext()["messages"] as? [String]
-
-                var loadedJSONAbles:[JSONAble]?
-                var loadedError:NSError?
+                let expectedAttrs: [String: [String]]? = sharedExampleContext()["attrs"] as? [String: [String]]
+                let expectedMessages: [String]? = sharedExampleContext()["messages"] as? [String]
+
+                var loadedJSONAbles: [JSONAble]?
+                var loadedError: NSError?
 
                 let endpoint: ElloAPI = .following
                 ElloProvider.shared.request(endpoint)

                    }

                    context("403") {
                        itBehavesLike("network error") { ["status":"403", "title":"You do not have access to the requested resource.", "statusCode":403, "code" : ElloNetworkError.CodeType.unauthorized.rawValue]}
                    }

                    context("404") {
                        itBehavesLike("network error") { ["status":"404", "title":"The requested resource could not be found.", "statusCode":404, "code" : ElloNetworkError.CodeType.notFound.rawValue]}
                    }

                    context("410") {


class TestObserver {
    var handled = false
    var object: Any?

    func handleNotification(_ note: NSNotification) {
        handled = true
