Guardfile
rspec_options = {
cmd: 'bundle exec rspec --profile --color -f documentation',
failed_mode: :focus
}
guard :rspec, rspec_options do
require 'guard/rspec/dsl'
dsl = Guard::RSpec::Dsl.new(self)
# RSpec files
rspec = dsl.rspec
watch(rspec.spec_helper) { rspec.spec_dir }
watch(rspec.spec_support) { rspec.spec_dir }
watch(rspec.spec_files)
# Ruby files
dsl.watch_spec_files_for(%r{^app/(.+)\.rb$})
end