Skip to content

Instantly share code, notes, and snippets.

@khash
Created December 13, 2011 11:40
Show Gist options
  • Save khash/1471827 to your computer and use it in GitHub Desktop.
Save khash/1471827 to your computer and use it in GitHub Desktop.
Bypass security in controller in unit test
def check_signature
return if request.host == 'test.host'
# check signature
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment