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/api_keys.rb

16 lines
435 B

FactoryGirl.define do
factory :api_key_apis, class: Carto::ApiKey do
type Carto::ApiKey::TYPE_REGULAR
name { unique_name('regular api key for apis') }
grants [{ type: "apis",
apis: ["sql", "maps"] }]
end
factory :master_api_key, class: Carto::ApiKey do
type Carto::ApiKey::TYPE_MASTER
name Carto::ApiKey::NAME_MASTER
grants [{ type: "apis",
apis: ["sql", "maps"] }]
end
end