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
s/\([^.a-zA-Z_-]\)stub\>/\1double/g | |
s/\([^.a-zA-Z_-]\)mock\>/\1double/g | |
s/\.returns\>/.and_return/g | |
s/\.yields\>/.and_yield/g | |
s/\(\S\+\)\.stubs(/allow(\1).to receive(/g | |
s/\(\S\+\)\.expects(/expect(\1).to receive(/g | |
s/at_least_once/at_least(:once)/g | |
s/at_most_once/at_most(:once)/g | |
s/\.raises\>/.and_raise/g | |
s/\(allow\|expect\)(\(\S\+\)\.any_instance).to receive/\1_any_instance_of(\2).to receive/g |
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
description "Mailcatcher" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
pre-start script | |
bash << "EOF" | |
mkdir -p /var/log/mailcatcher |
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
# Vagrant's autoloading may not have kicked in | |
begin | |
require 'vagrant-vbguest' unless defined? VagrantVbguest | |
require 'vagrant-vbguest/config' unless defined? VagrantVbguest::Config | |
VagrantVbguest::Config.iso_path = "/usr/lib/virtualbox/additions/VBoxGuestAdditions.iso" | |
rescue LoadError | |
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
mkdir -p ~/.rbenv/plugins | |
cd ~/.rbenv/plugins | |
git clone https://github.com/ianheggie/rbenv-binstubs.git | |
git clone https://github.com/sstephenson/rbenv-default-gems.git | |
git clone https://github.com/sstephenson/rbenv-gem-rehash.git | |
echo "bundler" >> ~/.rbenv/default-gems | |
echo "alias bundleinstall='bundle install --binstubs .bundle/bin --path vendor/bundle'" >> ~/.bashrc |
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
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Update software for archlinux | |
yaourt -Syau | |
## Install ################################################################### | |
yaourt -S rbenv |
NewerOlder