Sha256: 1d3881bda32f7612f288f481c6c463128520256e0b38195791c65af698eba06f

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

class StubAccount < OpenStruct
  def each_app(&block)
    return enum_for(:each_app) if block.nil?
    apps.each(&block)
  end

  def each_database(&block)
    return enum_for(:each_database) if block.nil?
    databases.each(&block)
  end

  def each_certificate(&block)
    return enum_for(:each_certificate) if block.nil?
    certificates.each(&block)
  end
end

Fabricator(:account, from: :stub_account) do
  id { Fabricate.sequence(:account_id) { |i| i } }
  bastion_host 'localhost'
  dumptruck_port 1234
  handle 'aptible'
  ca_body '--BEGIN FAKE CERT-- test --END FAKE CERT--'
  stack

  apps { [] }
  databases { [] }
  certificates { [] }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aptible-cli-0.18.0 spec/fabricators/account_fabricator.rb
aptible-cli-0.17.2 spec/fabricators/account_fabricator.rb
aptible-cli-0.17.1 spec/fabricators/account_fabricator.rb
aptible-cli-0.17.0 spec/fabricators/account_fabricator.rb