cartodb-4.42/spec/factories/overlays.rb

20 lines
398 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
FactoryGirl.define do
factory :carto_overlay, class: Carto::Overlay do
to_create(&:save!)
order 1
options { { display: true, x: 60, y: 20 } }
factory :carto_search_overlay do
type 'search'
end
factory :carto_zoom_overlay do
type 'zoom'
template '<a href="#zoom_in" class="zoom_in">+</a> <a href="#zoom_out" class="zoom_out">-</a>'
end
end
end