Sha256: e1f53525bf4c19a44eb0dcad4080efd0f5174e599b7ed088363e52609496b9ae
Contents?: true
Size: 807 Bytes
Versions: 3
Compression:
Stored size: 807 Bytes
Contents
group :red_green_refactor, halt_on_fail: true do guard :rspec, cmd: 'bundle exec rspec' do require 'guard/rspec/dsl' dsl = Guard::RSpec::Dsl.new(self) # 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) # Turnip features and steps watch(%r{^spec/acceptance/(.+)\.feature$}) watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' end end guard :rubocop, all_on_start: false, cli: ['--rails', '--auto-correct'] do watch(/.+\.rb$/) watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
securetrading-0.3.0 | Guardfile |
securetrading-0.2.0 | Guardfile |
securetrading-0.1.0 | Guardfile |