From 4e47e3e65226ad361ae736d38c34418263c8fba8 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Thu, 12 May 2011 20:27:07 +0200 Subject: [PATCH] Wait 1 second before continue, so the fixture modifications won't influence the subsequent specs. This is merely a guess, because all specs pass fine on the local machine but on Travis CI the next spec that uses the fixtures fails. This might be a problem related to the rounding of the timestamps in #file_modified?. --- spec/guard/listener_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/guard/listener_spec.rb b/spec/guard/listener_spec.rb index 3cc7583..e51747d 100644 --- a/spec/guard/listener_spec.rb +++ b/spec/guard/listener_spec.rb @@ -3,6 +3,8 @@ require 'spec_helper' describe Guard::Listener do subject { Guard::Listener } + after(:all) { sleep 1 } + describe ".select_and_init" do before(:each) { @target_os = Config::CONFIG['target_os'] } after(:each) { Config::CONFIG['target_os'] = @target_os }