Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- act { GET "/endpoint" };
- subtest "guess has no access" => sub {
- arrange { authenticated_user => guest };
- assume "has no access"
- => expect { http_response_status FORBIDDEN }
- => expect { http_response_content_type "text/javascript" }
- ;
- assume "with uri parameter it redirects"
- => arrange { http_request_uri_parameter signin => 1 }
- => expect { http_response_status REDIRECT }
- => expect { http_response_redirect_uri "/signin" }
- ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement