diff --git a/Gemfile b/Gemfile index 83d54f438..bcb6e495b 100644 --- a/Gemfile +++ b/Gemfile @@ -58,9 +58,12 @@ group :development do # bundle exec rake doc:rails generates the API under doc/api. gem 'sdoc', '~> 0.4.0' + # run tests automatically gem 'guard', '~> 2.6.1' + # rspec support for guard gem 'guard-rspec', '~> 4.3.1' + # rubocop support for guard gem 'guard-rubocop', '~> 1.1.0' end diff --git a/Guardfile b/Guardfile index a3419fe1e..065ffb602 100644 --- a/Guardfile +++ b/Guardfile @@ -1,14 +1,3 @@ -# A sample Guardfile -# More info at https://github.com/guard/guard#readme - -# Note: The cmd option is now required due to the increasing number of ways -# rspec may be run, below are examples of the most common uses. -# * bundler: 'bundle exec rspec' -# * bundler binstubs: 'bin/rspec' -# * spring: 'bin/rsspec' (This will use spring if running and you have -# installed the spring binstubs per the docs) -# * zeus: 'zeus rspec' (requires the server to be started separetly) -# * 'just' rspec: 'rspec' group :red_green_refactor, halt_on_fail:true do guard :rspec, cmd: 'bundle exec rspec' do watch(%r{^spec/.+_spec\.rb$})