From 9a084d28a04f077f004bab768e6411fe5fbf14af Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 18 Apr 2012 10:00:34 +0100 Subject: [PATCH] Attempt to fix unexplainably failing specs on travis-ci --- spec/synchronize_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/synchronize_spec.rb b/spec/synchronize_spec.rb index e859166..4f655ac 100644 --- a/spec/synchronize_spec.rb +++ b/spec/synchronize_spec.rb @@ -53,7 +53,10 @@ describe Redistat::Synchronize do } @obj.thread_safe.should be_false # first synchronize call Redistat::Synchronize.thread_safe = true # second synchronize call - @obj.synchronize { 'foo' } # two synchronize calls, once while checking thread_safe, once to call black + # two synchronize calls, once while checking thread_safe, once to call black + @obj.synchronize do + 'foo' + end end end