Don't fail specs because of blasted vim swapfiles
This commit is contained in:
parent
87375c7a1f
commit
ca2a4fa1be
@ -8,9 +8,11 @@ private
|
|||||||
end
|
end
|
||||||
|
|
||||||
def record_results
|
def record_results
|
||||||
|
noise = %r|\.sw.$| # don't fail specs due to editor swap files, etc.
|
||||||
|
|
||||||
@results = []
|
@results = []
|
||||||
@listener.on_change do |files|
|
@listener.on_change do |files|
|
||||||
@results += files
|
@results += files.reject { |f| f =~ noise }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user