From 7817e2ad6c51ee70a639a192c5233d909d4a8498 Mon Sep 17 00:00:00 2001 From: Jarmo Pertman Date: Sun, 9 Sep 2012 01:28:59 +0300 Subject: [PATCH] Daemon option is not supported on Windows. --- lib/guard/rails/runner.rb | 2 +- spec/lib/guard/rails/runner_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/guard/rails/runner.rb b/lib/guard/rails/runner.rb index 6370ffc..3bfcdc6 100644 --- a/lib/guard/rails/runner.rb +++ b/lib/guard/rails/runner.rb @@ -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] diff --git a/spec/lib/guard/rails/runner_spec.rb b/spec/lib/guard/rails/runner_spec.rb index 2e77931..2b361fe 100644 --- a/spec/lib/guard/rails/runner_spec.rb +++ b/spec/lib/guard/rails/runner_spec.rb @@ -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