lib/isolator/ignorer.rb in isolator-0.6.1 vs lib/isolator/ignorer.rb in isolator-0.6.2
- old
+ new
@@ -18,10 +18,10 @@
def configure_adapter(adapter, ignored_paths)
ignores = build_ignore_list(ignored_paths)
return if ignores.blank?
- regex = Regexp.new("^.*(#{ignores.join('|')}):.*$")
+ regex = Regexp.new("^.*(#{ignores.join("|")}):.*$")
adapter.ignore_if { caller.any? { |row| regex =~ row } }
end
def build_ignore_list(ignored_paths)
ignored_paths.each_with_object([]) do |path, result|