Permalink
Browse files

Add an option to run all features on start.

  • Loading branch information...
spraints committed Nov 28, 2011
1 parent 5237b47 commit 2b79795a979d64ab6b2e2de7bcd129333120a4b8
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/guard/spinach.rb
  2. +1 −1 lib/guard/spinach/templates/Guardfile
View
@@ -3,6 +3,10 @@
module Guard
class Spinach < Guard
+ def start
+ run_all if @options[:all_on_start]
+ end
+
def run_all
Runner.new([]).run
end
@@ -1,4 +1,4 @@
-guard 'spinach' do
+guard 'spinach', :all_on_start => false do
watch(%r|^features/(.*)\.feature|)
watch(%r|^features/steps/(.*)([^/]+)\.rb|) do |m|
"features/#{m[1]}#{m[2]}.feature"

0 comments on commit 2b79795

Please sign in to comment.