Skip to content
Snippets Groups Projects
Commit e1fef54b authored by Markus Reiter's avatar Markus Reiter
Browse files

Replace `Set::difference` with `Set::^`.

parent a74b7ade
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