From 204350384eb20c80a56cb2eea3ee5ad5ae35fed5 Mon Sep 17 00:00:00 2001 From: Oleksandr Chebotarov Date: Wed, 18 Dec 2024 15:45:28 +0200 Subject: [PATCH] Prevent overriding set by test example aggregate_failures flag --- spec/spec_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1f6f657ebd3..9d30fd9a600 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -66,6 +66,8 @@ end config.define_derived_metadata do |meta| - meta[:aggregate_failures] = true + unless meta.key?(:aggregate_failures) + meta[:aggregate_failures] = true + end end end