cartodb-4.42/spec/factories/assets.rb

24 lines
508 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
FactoryGirl.define do
factory :asset do
to_create(&:save)
public_url 'https://manolo.es/es/co/bar.png'
end
factory :carto_asset, class: Carto::Asset do
public_url 'https://manolo.es/es/co/bar.png'
end
factory :organization_asset, class: Carto::Asset do
storage_info do
{
type: 'local',
location: 'manolo_folder',
identifier: 'could_be_a_manolo_hash_23as4g5sh6sd7hd8j9jfgk'
}
end
public_url 'https://manolo.es/es/co/bar.png'
end
end