daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. group 'specs', halt_on_fail: true do
  2.   guard :rspec, all_on_start: true, cmd: 'bundle exec rspec' do
  3.     require 'guard/rspec/dsl'
  4.     dsl = Guard::RSpec::Dsl.new(self)
  5.  
  6.     # RSpec files
  7.     rspec = dsl.rspec
  8.     watch(rspec.spec_helper) { rspec.spec_dir }
  9.     watch(rspec.spec_support) { rspec.spec_dir }
  10.     watch(rspec.spec_files)
  11.  
  12.     # Ruby files
  13.     ruby = dsl.ruby
  14.     dsl.watch_spec_files_for(ruby.lib_files)
  15.   end
  16.  
  17.   guard :rubocop, all_on_start: false do
  18.     watch(/.+\.rb$/)
  19.   end
  20. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top