         
         describe("HTTP body matcher") {
             it("should match the correct HTTP body") {
+                let method: HTTPMethod = .GET
                 let url = "https://example.com/api"
+                let body: [String: AnyObject] = [ "key": "value" ]
+                
                 let request = NSMutableURLRequest(URL: NSURL(string: url)!)
-                let body: [String: AnyObject] = [ "key": "value" ]
-                let matcher = api(.GET, url, body: body)
+                request.HTTPMethod = method.description
+                
+                let matcher = api(method, url, body: body)
                 
                 setHTTPHeadersForRequest(request)
                 expect(matcher(request: request)).to(equal(false))

        
        describe("HTTP Authorization header and HTTP Body matcher") {
            it("should match the correct HTTP Authorization header and HTTP body") {
                let url = "https://example.com/api"
                let request = NSMutableURLRequest(URL: NSURL(string: url)!)
                let token = "token"
                let body: [String: AnyObject] = [ "key": "value" ]
                let matcher = api(.GET, url, token: token, body: body)
                
                setHTTPHeadersForRequest(request)

        
        describe("HTTP Authorization header matcher") {
            it("should match the correct HTTP Authorization header") {
                let method: HTTPMethod = .GET
                let url = "https://example.com/api"
                let token = "token"
                
                let request = NSMutableURLRequest(URL: NSURL(string: url)!)
                request.HTTPMethod = method.description
                
                let matcher = api(method, url, token: token)
                
                setHTTPHeadersForRequest(request)
                expect(matcher(request: request)).to(equal(false))
