guard 'spork', rspec_env: { 'RAILS_ENV' => 'test' } do watch('Gemfile.lock') watch('spec/spec_helper.rb') { :rspec } end guard :rspec, cmd: 'bundle exec rspec' do watch(/^spec\/.+_spec\.rb$/) watch(/^lib\/(.+)\.rb$/) { |m| "spec/lib/#{m[1]}_spec.rb" } watch('spec/spec_helper.rb') { :rspec } end