This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tabs> | |
<tab title="Console2"> | |
<console shell="" init_dir=""/> | |
<cursor style="0" r="255" g="255" b="255"/> | |
<background type="0" r="0" g="0" b="0"> | |
<image file="" relative="0" extend="0" position="0"> | |
<tint opacity="153" r="0" g="0" b="0"/> | |
</image> | |
</background> | |
</tab> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!C:/IronRuby/bin/ir.exe | |
# | |
# This file was generated by RubyGems. | |
# | |
# The application 'rspec' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require 'rubygems' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Based on this commit - http://github.com/casualjim/caricature/commit/d636e077016b1f4c3be5e66de793780a8f029048 | |
class Object | |
def isolate(method, &block) | |
@isolate = method | |
instance_eval &block | |
end | |
def returns(val) | |
puts "#{@isolate} should return #{val}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Matchers | |
class CountEqual | |
def initialize(expected) | |
@expected = expected | |
end | |
def matches?(actual) | |
@actual = actual | |
@actual.Count() == @expected.Count() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://jakescruggs.blogspot.com/2007/03/wrapping-context-in-context-in-rspec.html | |
SPEC_SUITES = [ | |
{ :id => :acl, :title => 'access control', :files => %w(spec/controllers/**/acl_spec.rb) }, | |
{ :id => :amazon, :title => 'Amazon libraries', :dirs => %w(spec/lib/amazon) } | |
] | |
namespace :spec do | |
namespace :suite do | |
SPEC_SUITES.each do |suite| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this config needs haproxy-1.1.28 or haproxy-1.2.1 | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
#log loghost local0 info | |
maxconn 4096 | |
#chroot /usr/share/haproxy | |
user haproxy | |
group haproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo aptitude install automake spidermonkey-bin autoconf subversion-tools libtool help2man build-essential erlang erlang-manpages libicu38 libmozjs-dev wget libicu-dev libreadline5-dev checkinstall | |
sudo apt-get install libcurl4-openssl-dev | |
wget http://mirrors.enquira.co.uk/apache/couchdb/0.11.0/apache-couchdb-0.11.0.tar.gz | |
tar -xzvf apache-couchdb-0.11.0.tar.gz | |
cd apache-couchdb-0.11.0 | |
./configure --bindir=/usr/bin --sbindir=/usr/sbin --localstatedir=/var --sysconfdir=/etc | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"product_catalog", "target":"content_pool", "continuous":true}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cucumber . URL="http://localhost:5764/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected const string DateRegEx = @"(0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20)?\d\d"; |