This commit is contained in:
Gaetan Craig-Riou
2026-03-24 09:29:19 +11:00
parent eff1ed4a5e
commit 6c4ae1d2c1

View File

@@ -6,13 +6,13 @@ RSpec.describe "registration/steps/_details.html.haml" do
it "uses Google Maps when it is enabled" do
allow(view).to receive_messages(using_google_maps?: true)
is_expected.to match /<ui-gmap-google-map center='map.center' zoom='map.zoom'>/
is_expected.to match /<ui-gmap-google-map center="map.center" zoom="map.zoom">/
end
it "uses OpenStreetMap when it is enabled" do
ContentConfig.open_street_map_enabled = true
allow(view).to receive_messages(using_google_maps?: false)
is_expected.to match /<div class='map-container--registration' id='open-street-map'>/
is_expected.to match /<div class="map-container--registration" id="open-street-map">/
end
end