Skip to content

Instantly share code, notes, and snippets.

@michaelrkn
Created March 20, 2013 19:49
Show Gist options
  • Select an option

  • Save michaelrkn/5207871 to your computer and use it in GitHub Desktop.

Select an option

Save michaelrkn/5207871 to your computer and use it in GitHub Desktop.
twitter oauth stubs
stub_request(:post, "https://api.twitter.com/oauth/request_token").
to_return(:body => "oauth_token=t&oauth_token_secret=s")
stub_request(:post, "https://api.twitter.com/oauth/access_token").
to_return(:body => "oauth_token=at&oauth_token_secret=as&screen_name=sn")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment