linux and other system don't sort files in same order in polling listener, fix spec to work on linux

This commit is contained in:
Yann Lugrin 2010-10-21 16:54:03 +08:00 committed by Thibaud Guillaume-Gentil
parent 31cfcc23d4
commit eb8decd9ee

View File

@ -39,7 +39,7 @@ describe Guard::Polling do
FileUtils.touch file1
FileUtils.touch file2
stop
@results.should == ['spec/fixtures/folder1/file1.txt', 'spec/fixtures/folder1/folder2/file2.txt']
@results.sort.should == ['spec/fixtures/folder1/file1.txt', 'spec/fixtures/folder1/folder2/file2.txt']
end
private