Skip to content

Instantly share code, notes, and snippets.

chantastic / directives.js
Created Nov 26, 2012 — forked from abourget/directives.js
Hammer.js integration with AngularJS
View directives.js
* Inspired by AngularJS' implementation of "click dblclick mousedown..."
* This ties in the Hammer events to attributes like:
* hm-tap="add_something()"
* hm-swipe="remove_something()"
* and also has support for Hammer options with:

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: