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?.
This commit is contained in:
Michael Kessler 2011-05-12 20:27:07 +02:00
parent beb9f92409
commit 4e47e3e652

View File

@ -3,6 +3,8 @@ require 'spec_helper'
describe Guard::Listener do describe Guard::Listener do
subject { Guard::Listener } subject { Guard::Listener }
after(:all) { sleep 1 }
describe ".select_and_init" do describe ".select_and_init" do
before(:each) { @target_os = Config::CONFIG['target_os'] } before(:each) { @target_os = Config::CONFIG['target_os'] }
after(:each) { Config::CONFIG['target_os'] = @target_os } after(:each) { Config::CONFIG['target_os'] = @target_os }