From 1658a616a83db01cec0e19e91dfc201bc4edec46 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 7 Apr 2015 17:33:16 +0000 Subject: [PATCH] Configure guard for cucumber and rspec --- Guardfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Guardfile diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..87fa10f --- /dev/null +++ b/Guardfile @@ -0,0 +1,12 @@ +directories %w[features lib spec] + +guard :cucumber, cli: '--format pretty --quiet', all_on_start: false do + watch(%r{\Afeatures/.+\.feature\z}) +end + +guard :rspec, cmd: 'bundle exec rspec -f doc' do + watch(%r{\Aspec/.+_spec\.rb\z}) + watch(%r{\Alib/(.+)\.rb\z}) { |m| "spec/#{m[1]}_spec.rb" } + watch('spec/spec_helper.rb') { 'spec' } + watch(%r{\Aspec/support/.+\.rb\z}) { 'spec' } +end