Daemon option is not supported on Windows.

This commit is contained in:
Jarmo Pertman 2012-09-09 01:28:59 +03:00
parent a0f4b1ae19
commit 7817e2ad6c
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ module Guard
'--pid', pid_file
]
rails_options << '-d' if options[:daemon]
rails_options << '-d' if options[:daemon] && !windows?
rails_options << '-u' if options[:debugger]
rails_options << options[:server] if options[:server]

View File

@ -40,7 +40,7 @@ describe Guard::RailsRunner do
end
end
context 'daemon' do
context 'daemon', :unless => RUBY_PLATFORM =~ /mswin|msys|mingw/ do
let(:options) { default_options.merge(:daemon => true) }
it "should have a daemon switch" do