Sha256: f008476efdea0ed0af46e8d81f1a4303a2e2ac5c9d4ea3622fcd87c3b6b05148
Contents?: true
Size: 647 Bytes
Versions: 16
Compression:
Stored size: 647 Bytes
Contents
group :red_green_refactor, halt_on_fail: true do guard :rspec, cmd: 'rspec' do require 'guard/rspec/dsl' dsl = Guard::RSpec::Dsl.new(self) # Feel free to open issues for suggestions and improvements # RSpec files rspec = dsl.rspec watch(rspec.spec_helper) { rspec.spec_dir } watch(rspec.spec_support) { rspec.spec_dir } watch(rspec.spec_files) # Ruby files ruby = dsl.ruby dsl.watch_spec_files_for(ruby.lib_files) end guard :rubocop, all_on_start: false, cmd: 'rubocop', cli: '--format fuubar' do watch(/.+\.rb/) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end end
Version data entries
16 entries across 16 versions & 1 rubygems