about summary refs log tree commit homepage
path: root/test/rails/test_rails.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rails/test_rails.rb')
-rw-r--r--test/rails/test_rails.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rails/test_rails.rb b/test/rails/test_rails.rb
index 9502dcb..304f519 100644
--- a/test/rails/test_rails.rb
+++ b/test/rails/test_rails.rb
@@ -92,9 +92,6 @@ logger Logger.new('#{COMMON_TMP.path}')
     redirect_test_io { @pid = fork { exec 'unicorn_rails', "-l#@addr:#@port" } }
     wait_master_ready("test_stderr.#$$.log")
 
-    # temp dirs exist
-    tmp_dirs.each { |dir| assert(File.directory?("tmp/#{dir}")) }
-
     # basic GET
     res = Net::HTTP.get_response(URI.parse("http://#@addr:#@port/foo"))
     assert_equal "FOO\n", res.body
@@ -102,6 +99,9 @@ logger Logger.new('#{COMMON_TMP.path}')
     assert_equal "4", res['Content-Length']
     assert_equal "200 OK", res['Status']
 
+    # temp dirs exist
+    tmp_dirs.each { |dir| assert(File.directory?("tmp/#{dir}")) }
+
     # can we set cookies?
     res = Net::HTTP.get_response(URI.parse("http://#@addr:#@port/foo/xcookie"))
     assert_equal "200", res.code