Created
November 29, 2011 14:47
-
-
Save voxik/1405043 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2c0df4e3ef50e727a68a938a058c7cc8b0d84aa4 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]> | |
Date: Tue, 29 Nov 2011 15:45:20 +0100 | |
Subject: [PATCH] Fix the install spec broken by 55c024c2 | |
--- | |
spec/controllers/service_spec.rb | 4 ++-- | |
1 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/spec/controllers/service_spec.rb b/spec/controllers/service_spec.rb | |
index 10abdaf..3cff608 100644 | |
--- a/spec/controllers/service_spec.rb | |
+++ b/spec/controllers/service_spec.rb | |
@@ -28,7 +28,7 @@ describe Service do | |
File.exist?(Service::INITD_PATH).should be_true | |
File.read(Service::INITD_PATH).should include('CONFIG_PATH=tmp/sandbox/etc/thin', | |
- 'SCRIPT_NAME=tmp/sandbox/etc/init.d/thin', | |
+ 'SCRIPT_NAME=tmp/sandbox' + (File.directory?('/etc/rc.d') ? '/etc/rc.d/thin' : '/etc/init.d/thin'), | |
'DAEMON=' + Command.script) | |
end | |
@@ -47,4 +47,4 @@ describe Service do | |
after do | |
FileUtils.rm_rf 'tmp/sandbox' | |
end | |
-end | |
\ No newline at end of file | |
+end | |
-- | |
1.7.7.3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment