Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created June 17, 2011 15:08
Show Gist options
  • Save andrewpthorp/1031606 to your computer and use it in GitHub Desktop.
Save andrewpthorp/1031606 to your computer and use it in GitHub Desktop.
Authorization Matcher
def responds_with_success_when_authenticated
@context.sign_in
do_request
@context.response.code == '200'
end
private :responds_with_success_when_authenticated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment