diff --git a/Guardfile b/Guardfile index 8a43f414ca9ecab21ffe9d0b50f1022489dd829f..21ee2a9d6104e6638df24b628a0c41ff7e965b8d 100644 --- a/Guardfile +++ b/Guardfile @@ -2,7 +2,7 @@ # More info at https://github.com/guard/guard#readme -cmd = ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec' +cmd = ENV['GUARD_CMD'] || (ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec') guard :rspec, cmd: cmd do require "guard/rspec/dsl"