diff --git a/lib/boot_merb.rb b/lib/boot_merb.rb index 21c4a9b..d5c85f0 100644 --- a/lib/boot_merb.rb +++ b/lib/boot_merb.rb @@ -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?