spring
# Gemfile
group :development do
gem 'spring'
gem "spring-commands-rspec"
gem "spring-commands-cucumber"
end
# GuardFile
# rspec
guard :rspec, cmd: "bin/spring rspec", all_on_start: false, all_after_pass: false do
#...
# cucumber
guard(:cucumber,
command_prefix: "bin/spring",
bundler: false,
all_on_start: false,
all_after_pass: false) do
#...
end
Only include spring
gem and invoke by guard
will raise error messages smiliar "Errno::ENOENT: No such file or directory @ rb_sysopen - tmp/rspec..."