Closed czechboy0 closed 9 years ago
Love this. Can you PR a test for this too?
Hmm, do you know how to test that fatalError
was called?
Oh actually, now that you mention it, I don't :( Wish I did so I could test more things in DVR.
Well, if you ever do come up with a way (or migrate to throw
ing Swift errors), here's the test: https://github.com/czechboy0/DVR/commit/613995a0f6f45464dc858b883db26e034bf9003c
:heart:
Made the problem when response is
nil
a bit more obvious (+ removed a forced unwrap, FTW!) I encountered this when https failed to validate a certificate -response
was nil, which crashed on the force unwrap during the creation ofInteraction
. If this happens now, it should be a bit more obvy.