Permalink
Browse files

Don't fail specs because of blasted vim swapfiles

  • Loading branch information...
1 parent 87375c7 commit ca2a4fa1be2a0a1de98e31b566554cddae5484fe @ches ches committed Aug 14, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/support/listener_helper.rb
@@ -8,9 +8,11 @@ def start
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

0 comments on commit ca2a4fa

Please sign in to comment.