cartodb/spec/factories/overlays.rb

20 lines
398 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +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