spec/runners/cmap/verifier.rb in mongo-2.18.3 vs spec/runners/cmap/verifier.rb in mongo-2.19.0
- old
+ new
@@ -1,7 +1,7 @@
# frozen_string_literal: true
-# encoding: utf-8
+# rubocop:todo all
# Copyright (C) 2019-2020 MongoDB Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -39,10 +39,10 @@
if expected.key?(k) && expected[k] == 42 && v
actual_modified[k] = 42
end
end
- expect(actual_modified).to eq(expected)
+ expect(actual_modified.slice(*expected.keys)).to eq(expected)
end
end
end
end