Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created October 10, 2008 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fairchild/16015 to your computer and use it in GitHub Desktop.
Save fairchild/16015 to your computer and use it in GitHub Desktop.
it "should get another hmac" do
bs = 'GET&http%3A%2F%2Fterm.ie%2Foauth%2Fexample%2Frequest_token.php&oauth_consumer_key%3Dkey%26oauth_nonce%3DuhnyjcnYEyO9vUxPAcdttE0OqbFPgBOp2xv7XmN6bw%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1223595784%26oauth_token%3Dtoken%26oauth_version%3D1.0'
@oa.signature(bs, 'secret', '').should == "cumMcmS4gQG5pcrtlgckPv/V0WU="
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment