guard-jasmine-headless-webkit/Guardfile

16 lines
524 B
Plaintext
Raw Normal View History

2011-05-24 01:28:01 +00:00
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'rspec', :cli => '-c', :version => 2 do
2011-05-24 01:28:01 +00:00
watch(%r{^spec/.+_spec\.rb})
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
2012-01-11 16:31:19 +00:00
end
2011-05-24 01:28:01 +00:00
2012-01-11 16:31:19 +00:00
guard 'cucumber', :cli => '-f pretty' do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
2011-05-24 01:28:01 +00:00
end
2012-01-11 16:31:19 +00:00