Testing OAuth Apis in rails 3.x apps
- Install phantomjs
- Add rspec, poltergeist, capybara, vcr to Gemfile
- bundle install
- Create spec/acceptance folder
- Create spec/acceptance/acceptance_helper.rb (see below)
- Create spec for oauth flow (see below) read the comments carefully