Guardfile in message-driver-0.2.2 vs Guardfile in message-driver-0.3.0
- old
+ new
@@ -6,12 +6,12 @@
guard 'bundler' do
watch('Gemfile')
watch(/^.+\.gemspec/)
end
-common_rspec_opts = {keep_failed: true, all_after_pass: true}
-unit_spec_opts = common_rspec_opts.merge({spec_paths: ["spec/units"], cmd: 'rspec -f doc', run_all: {cmd: 'rspec'}})
-integration_spec_opts = common_rspec_opts.merge({spec_paths: ["spec/integration/#{BrokerConfig.current_adapter}"], cmd: 'rspec -f doc -t all_adapters', run_all: {cmd: 'rspec -t all_adapters'}})
+common_rspec_opts = { all_after_pass: true }
+unit_spec_opts = common_rspec_opts.merge({ spec_paths: ["spec/units"], cmd: 'bundle exec rspec -f doc', run_all: { cmd: 'bundle exec rspec' } })
+integration_spec_opts = common_rspec_opts.merge({ spec_paths: ["spec/integration/#{BrokerConfig.current_adapter}"], cmd: 'bundle exec rspec -f doc -t all_adapters', run_all: { cmd: 'bundle exec rspec -t all_adapters' } })
group 'specs' do
guard 'rspec', unit_spec_opts do
watch(%r{^spec/units/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/units/#{m[1]}_spec.rb" }