Don't fail specs because of blasted vim swapfiles
This commit is contained in:
parent
87375c7a1f
commit
ca2a4fa1be
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user