Skip to content
Snippets Groups Projects
Commit 6e6f4c97 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2050 from reitermarkus/fix-spec-helper

Replace `Set::difference` with `Set::^`.
parents c4cb1dd5 e1fef54b
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ RSpec.configure do |config|
files_after_test = Find.find(TEST_TMPDIR).map { |f| f.sub(TEST_TMPDIR, "") }
diff = Set.new(@__files_before_test).difference(Set.new(files_after_test))
diff = Set.new(@__files_before_test) ^ Set.new(files_after_test)
expect(diff).to be_empty, <<-EOS.undent
file leak detected:
#{diff.map { |f| " #{f}" }.join("\n")}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment