do not run the guard for run_all command by default

This commit is contained in:
Dmytrii Nagirniak 2011-07-08 13:31:20 +10:00
parent be361b05a5
commit 744ef5ee23
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ module Guard
def run_for? command
run_on = @options[:run_on]
run_on = [:start, :all, :change] if not run_on or run_on.empty?
run_on = [:start, :change] if not run_on or run_on.empty?
run_on = [run_on] unless run_on.respond_to?(:include?)
run_on.include?(command)
end

View File

@ -1,5 +1,5 @@
module Guard
module RailsAssetsVersion
VERSION = "0.0.2"
VERSION = "0.0.3"
end
end

View File

@ -14,7 +14,7 @@ describe Guard::RailsAssets do
end
describe '#run_all' do
it_behaves_like 'guard command', :command => :run_all, :run => true
it_behaves_like 'guard command', :command => :run_all, :run => false
end
describe '#run_on_change' do