cartodb-4.42/spec/factories/states.rb

17 lines
371 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
require_relative '../../app/models/carto/state'
FactoryGirl.define do
factory :state, class: Carto::State do
json {
{
map: {
ne: [-89.81756220409478, -335.39062500000006],
sw: [89.81302911292107, 97.73437500000001],
center: [-0.7031073524364783, -118.82812500000001],
zoom: 1
}
}
}
end
end