Guardfile in flipper-0.3.0 vs Guardfile in flipper-0.4.0
- old
+ new
@@ -4,10 +4,22 @@
guard 'bundler' do
watch('Gemfile')
watch(/^.+\.gemspec/)
end
-guard 'rspec' do
- watch(%r{^spec/.+_spec\.rb$}) { "spec" }
- watch(%r{^lib/(.+)\.rb$}) { "spec" }
- watch('spec/helper.rb') { "spec" }
+rspec_options = {
+ :all_after_pass => false,
+ :all_on_start => false,
+ :keep_failed => false,
+}
+
+guard 'rspec', rspec_options do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{shared_adapter_specs\.rb$}) { |m|
+ [
+ "spec/flipper/adapters/memory_spec.rb",
+ "spec/flipper/adapters/memoized_spec.rb",
+ ]
+ }
+ watch('spec/helper.rb') { "spec" }
end