Skip to content

Instantly share code, notes, and snippets.

@dbwest
dbwest / Gemfile
Last active December 23, 2015 00:09
An example script, and accompanying Gemfile, to use for automating the Chrome mobile browser on an Android device. Tested on OS X Mountain Lion. Appium installed using node for CLI. If you don't have a fast android emulator, try genymotion...
source "http://rubygems.org"
gem 'watir-webdriver'
gem 'selenium-webdriver'
#in rails proj dir
$ bundle update
Resolving dependencies...
Using rake (0.9.6)
Using RedCloth (4.2.9)
Using i18n (0.6.4)
Using multi_json (1.3.7)
Using activesupport (3.2.8)
Using builder (3.0.4)
Using activemodel (3.2.8)
@dbwest
dbwest / Gemfile
Created May 28, 2012 16:36
haml rails error after 'rake erb:to:haml'
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'bcrypt-ruby'
# gem 'disguise'
@dbwest
dbwest / 0_README.md
Created April 26, 2012 20:19
Continuous CoffeeScript testing with Guard and Jasmine

Continuous CoffeeScript testing with Guard and Jasmine

This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo

  • Install Gems with Bundler with bundle install
  • Define your guards with mate Guardfile
  • Initialize Jasmine with bundle exec jasmine init
  • Configure Jasmine with mate spec/support/yasmine.ym
  • Start Guard with bundle exec guard
@dbwest
dbwest / gist:2502754
Created April 26, 2012 20:16
Programming time savers
dbwest:
vim modal editing
zen coding (quick html)