You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/spec/factories/overlays.rb

20 lines
413 B

FactoryBot.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