Sha256: 80b948b5f94b902beda624eb0ed8ec16a2cbd4a1363b82c1e8154f1c569ccfa2

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

FactoryGirl.define do
  factory :container_resource, :class => ComputeResource do
    sequence(:name) { |n| "compute_resource#{n}" }

    trait :digitalocean do
      provider 'Digitalocean'
      api_key 'asampleapikey'
      region 'everywhere'
    end

    factory :digitalocean_cr, :class => ForemanDigitalocean::Digitalocean, :traits => [:digitalocean]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_digitalocean-1.2.0 test/factories/compute_resources.rb
foreman_digitalocean-1.1.0 test/factories/compute_resources.rb
foreman_digitalocean-1.0.0 test/factories/compute_resources.rb