From 02b3e507b66ef7679efbe318486b50dc5fbcbc73 Mon Sep 17 00:00:00 2001 From: Hassan Mir Date: Mon, 2 Dec 2024 11:01:03 +0000 Subject: [PATCH] Fix flaky test --- spec/forms/support_interface/country_form_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/forms/support_interface/country_form_spec.rb b/spec/forms/support_interface/country_form_spec.rb index ba2df1f68..9940075f7 100644 --- a/spec/forms/support_interface/country_form_spec.rb +++ b/spec/forms/support_interface/country_form_spec.rb @@ -251,7 +251,7 @@ it "sets has_regions to true" do expect(subject).to have_attributes( has_regions: true, - region_names: "Madrid\nBarcelona", + region_names: country.reload.regions.map(&:name).join("\n"), ) end end