lib/mutant/matcher/config.rb in mutant-0.11.21 vs lib/mutant/matcher/config.rb in mutant-0.11.22
- old
+ new
@@ -76,12 +76,14 @@
#
# @param [Config] other
#
# @return [Config]
def merge(other)
- self.class.new(
- to_h
- .to_h { |name, value| [name, value + other.public_send(name)] }
+ with(
+ ignore: ignore + other.ignore,
+ start_expressions: start_expressions + other.start_expressions,
+ subjects: other.subjects.any? ? other.subjects : subjects,
+ diffs: diffs + other.diffs
)
end
private