Skip to content

Instantly share code, notes, and snippets.

View rystraum's full-sized avatar

Rystraum Gamonez rystraum

  • Loudcloud Inc. / Intelimina Systems Inc.
  • Philippines
View GitHub Profile

Testing OAuth Apis in rails 3.x apps

  1. Install phantomjs
  2. Add rspec, poltergeist, capybara, vcr to Gemfile
  3. bundle install
  4. Create spec/acceptance folder
  5. Create spec/acceptance/acceptance_helper.rb (see below)
  6. Create spec for oauth flow (see below) read the comments carefully

NB: My signup flow is something like: