Skip to content

Instantly share code, notes, and snippets.

@thomo
thomo / env.rb
Created August 12, 2010 08:50
Environment file for cucumber + couchapp. Use test db defined in .couchapprc for feature run.
require 'rubygems'
require 'culerity'
require 'cucumber/formatter/unicode'
require 'restclient'
require 'couchrest'
def read_couchapprc
json = ""
File.open(File.join(APP_PATH, ".couchapprc")).each { |line| json << line }
JSON.parse(json)