Skip to content

Instantly share code, notes, and snippets.

@abeger
abeger / gist:2378414
Created April 13, 2012 17:09
Setting up web testing with Cucumber and Capybara
Feature: Testing a web site with Capybara and Cucumber
Useful resources:
The Cucumber wiki: https://github.com/cucumber/cucumber/wiki
Capybara RDocs: http://rubydoc.info/github/jnicklas/capybara/file/README.md
Rspec RDocs: http://rubydoc.info/github/rspec/rspec/frames
The Cucumber Book: http://pragprog.com/book/hwcuc
Ruby Toolbox for Gem Selection: https://www.ruby-toolbox.com/
Interesting discussion of Cucumber and BDD: http://gfxmonk.net/2011/01/26/how-i-replaced-cucumber.html
@abeger
abeger / gist:2378389
Last active October 3, 2015 03:08
Dump a MySQL database with mysqldump to a gzipped SQL file.
mysqldump --compact
--skip-add-locks
--skip-lock-tables
--ignore-table=TABLE1
--ignore-table=TABLE2
-h HOST
-u USER
-p
DATABASE_NAME | gzip > DUMPFILE.sql.gz
@abeger
abeger / gist:2378370
Created April 13, 2012 17:02
Turn foreign keys off before importing a MySQL database
SET FOREIGN_KEY_CHECKS=0;