8thlight / cob_spec

A fitnesse suite for a web server
24 stars 33 forks source link

Modifies DELETE Form Test to Ensure Data is Actually Deleted #16

Closed meaganewaller closed 10 years ago

meaganewaller commented 10 years ago

I was able to cheat this test because in my RequestRouter I never explicitly defined request uri of /form and request method of delete, and so it defaulted to going to my RootResponse where in the body data = heathcliff wasn't there, so the test passed.

I modified the test so that after requesting delete /form it ensures that the response code is 200, and requests the /form page again to ensure that it is deleted.