Added missing post_via_redirect

This commit is contained in:
Gwyn Morfey 2008-04-16 15:37:47 +01:00
parent 44745f6891
commit 04261e66d8

View File

@ -43,6 +43,11 @@ class Merb::Test::RspecStory
follow_redirect! while redirect?
status
end
def post_via_redirect(path, parameters = {}, headers = {})
@controller=post path, parameters, headers
follow_redirect! while redirect?
status
end
def delete_via_redirect(path, parameters = {}, headers = {})
@controller=delete path, parameters, headers
follow_redirect! while redirect?