Patrick Cheng
Results
2
comments of
Patrick Cheng
Oops. Converted tabs back to spaces.
I think the "addReturn" separates withHeaders for the request, vs withHeaders for the response. ``` objc stubRequest(@"POST", @"https://api.example.com/dogs.json"). withHeaders(@{@"Accept": @"application/json", @"X-CUSTOM-HEADER": @"abcf2fbc6abgf"}). withBody(@"^The body start with this".regex). andReturnWithStatusCode(200). withHeaders(@{@"Content-Type": @"application/json"});...