cartodb-4.42/spec/factories/visualization_exports.rb

13 lines
490 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
require_relative '../../app/models/carto/visualization_export'
FactoryGirl.define do
factory :visualization_export, class: Carto::VisualizationExport do
id { Carto::UUIDHelper.random_uuid }
state Carto::VisualizationExport::STATE_PENDING
file { "#{Cartodb.get_config(:exporter, "uploads_path")}/abcd/Untitled Map (on 2016-05-26 at 06.08.15).carto" }
url { "/api/v3/visualization_exports/#{id}/download" }
created_at { Time.now }
updated_at { Time.now }
end
end