Permalink
Browse files

slight refactor

  • Loading branch information...
1 parent a74ae41 commit fad41186b28ad738fe719d34ca36da8983a676a5 Michael Sofaer and Raphael Sofaer committed Nov 20, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/hellspawn_test.rb
View
@@ -6,12 +6,12 @@ def setup
@thin = {:name => "thin",
:executable => "/usr/local/bin/thin",
:flags => {"-e" => "production",
- "-c" => "/usr/local/app/my_app",
+ "-c" => "/usr/local/app/my_app",
},
}
@base = "/tmp/test_services"
- @legion = Hellspawn.legion(:base => @base,
- :log_dir => "/tmp/test_services_log")
+ @log_dir = "/tmp/test_services_log"
+ @legion = Hellspawn.legion(:base => @base, :log_dir => @log_dir)
end
def teardown
FileUtils.rm_rf @base
@@ -44,7 +44,7 @@ def test_daemon_log_script
@legion.summon @thin
@legion.march!
run_script = File.read("#{@base}/thin/log/run")
- assert { run_script.split("\n").first == "exec multilog #{@legion.log_dir}/thin.log" }
+ assert { run_script.split("\n").first == "exec multilog #{@log_dir}/thin.log" }
end
def test_flags
@legion.summon @thin

0 comments on commit fad4118

Please sign in to comment.