As configured in my dotfiles.
start new:
tmux
start new with session name:
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |
guard 'spork', :rspec_env => { 'RAILS_ENV' => 'test' } do | |
watch('config/application.rb') | |
watch('config/environment.rb') | |
watch(%r{^config/environments/.+\.rb$}) | |
watch(%r{^config/initializers/.+\.rb$}) | |
watch(%r{^config/locales/.+\.yml$}) | |
watch('Gemfile') | |
watch('Gemfile.lock') | |
watch('spec/spec_helper.rb') | |
end |
require 'rubygems' | |
require 'spork' | |
# This code runs once when you run your test suite | |
Spork.prefork do | |
ENV['RAILS_ENV'] ||= 'test' | |
# Mongoid models reload | |
require 'rails/mongoid' | |
Spork.trap_class_method(Rails::Mongoid, :load_models) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
" add jbuilder syntax highlighting | |
au BufNewFile,BufRead *.json.jbuilder set ft=ruby |
#recursively require all files in directory (and subdirectories) | |
Dir["#{File.dirname(__FILE__)}/squat/**/*.rb"].each {|file| require file } | |
#recursively require all files in directory but skip paths that match a pattern | |
Dir["#{File.dirname(__FILE__)}/squat/**/*.rb"].each do |file| | |
require file unless file =~ /\/model\// | |
end |