Guard::Reloader
Reloader guard automatically reload file definition and launch proper tests when files are modified or created.
Install
Please be sure to have Guard and Test::Unit installed before continue.
If you're using Bundler, add it to your Gemfile (inside the development group):
gem 'guard-reloader'and run:
$ bundle installor manually install the gem:
$ gem install guard-reloaderAdd Guard definition to your Guardfile by running this command:
$ guard init reloaderUsage
$ cd [path-to-your-rails-project]
$ guardGuardfile
Guard::Reloader at the moment support only modification in model and controller.
guard 'reloader' do
watch(%r{^app/models/(.+)\.rb$})
watch(%r{^test/unit/(.+)\.rb$})
watch(%r{^app/controllers/(.+)\.rb$})
watch(%r{^test/functional/(.+)\.rb$})
endPlease read the Guard documentation for more info about the Guardfile DSL.
Author
Kudos
Many thanks to Watchmen member.