Don't fail specs because of blasted vim swapfiles

This commit is contained in:
Ches Martin 2011-08-14 15:16:59 +07:00
parent 87375c7a1f
commit ca2a4fa1be

View File

@ -8,9 +8,11 @@ private
end
def record_results
noise = %r|\.sw.$| # don't fail specs due to editor swap files, etc.
@results = []
@listener.on_change do |files|
@results += files
@results += files.reject { |f| f =~ noise }
end
end