Guardfile in mongoid_geospatial-2.8.3 vs Guardfile in mongoid_geospatial-3.0.0
- old
+ new
@@ -1,9 +1,21 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
-require 'guard'
+ignore /\/.#.+/
-guard 'rspec' do
+guard :rspec do
watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^lib/(.+)\.rb$}) { "spec" } # { |m| "spec spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
+
+
+# guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
+# watch('config/application.rb')
+# watch('config/environment.rb')
+# watch('config/environments/test.rb')
+# watch(%r{^config/initializers/.+\.rb$})
+# watch('Gemfile.lock')
+# watch('spec/spec_helper.rb') { :rspec }
+# watch('test/test_helper.rb') { :test_unit }
+# watch(%r{features/support/}) { :cucumber }
+# end