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