summaryrefslogtreecommitdiff
blob: 0391d75c480824cb8b5ece49c9546c776610a7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
commit a07077f4737754757e99c2d42267f432289ffd13
Author: Magnus Holm <judofyr@gmail.com>
Date:   Fri Jun 24 10:43:55 2011 +0200

    Fix compilesite test for multiple threads (closes #93)

diff --git a/test/tilt_compilesite_test.rb b/test/tilt_compilesite_test.rb
index 1ba6433..2944c84 100644
--- a/test/tilt_compilesite_test.rb
+++ b/test/tilt_compilesite_test.rb
@@ -39,7 +39,7 @@ class CompileSiteTest < Test::Unit::TestCase
               locals = { "local#{i}" => 'value' }
               res = template.render(self, locals)
               thread_id = Thread.current.object_id
-              res = template.render(self, "local#{thread_id.to_s}" => 'value')
+              res = template.render(self, "local#{thread_id.abs.to_s}" => 'value')
             rescue => boom
               main_thread.raise(boom)
             end