guard/guard-rspec — Issue #82: Notifications are not working
Author: Nerian
Created: 2011-12-20 01:44:08+00:00
State: open

I am using:

* guard-rails-assets
* guard-rspec
* guard-spork

When I run `bundle exec guard` I get the following notifications:

* Guard - Guard: Assets compiled
* Guard - Spork: RSpec successfully started

But I don't get any notifications from Rspec. It doesn't notify me about the results of running the test suite. I tried many times, but I get no notification.

```
group :test do
gem 'rspec'
gem "rspec-rails"
gem 'guard-rspec'
gem 'rb-fsevent'
#gem 'growl'
gem 'rb-readline'
gem 'ruby_gntp'
gem 'guard-spork'
gem 'spork', '~> 0.9.0.rc'
gem 'guard-rails-assets'
end
```

```

# It is recommended to make explicit list of assets in `config/application.rb`
# config.assets.precompile = ['application.js', 'application.css', 'all-ie.css']
guard 'rails-assets', :run_on => [:start, :change], :runner => :rails, :rails_env => 'test' do
watch(%r{^app/assets/.+$})
watch('config/application.rb')
end

guard 'spork',
:rspec => true,
:test_unit => false,
:rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
#watch(%r{^app/(.+)\.rb$})
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb')
watch('test/test_helper.rb')
end

guard 'rspec', :version => 2, :notification => true, :cli => "--drb", :keep_failed => false do
watch(%r{^spec/fabricators/.+_fabricator\.rb$}) { "spec" }
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }

watch(%r{^spec/acceptance/(.+)\.rb$})
watch(%r{^spec/models/(.+)\.rb$})
watch(%r{^spec/controllers/(.+)\.rb$})

watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('spec/spec_helper.rb') { "spec" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
end
```