Added missing post_via_redirect
This commit is contained in:
parent
44745f6891
commit
04261e66d8
@ -43,6 +43,11 @@ class Merb::Test::RspecStory
|
|||||||
follow_redirect! while redirect?
|
follow_redirect! while redirect?
|
||||||
status
|
status
|
||||||
end
|
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 = {})
|
def delete_via_redirect(path, parameters = {}, headers = {})
|
||||||
@controller=delete path, parameters, headers
|
@controller=delete path, parameters, headers
|
||||||
follow_redirect! while redirect?
|
follow_redirect! while redirect?
|
||||||
|
Loading…
Reference in New Issue
Block a user