Sha256: 48de165bf2234e3dbb2d9a2d8cd880b20d22f1cb9fe4b517610de384ba9bb178

Contents?: true

Size: 597 Bytes

Versions: 13

Compression:

Stored size: 597 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'
  stack

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
aptible-cli-0.16.9 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.8 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.7 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.6 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.5 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.4 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.3 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.2 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.1 spec/fabricators/account_fabricator.rb
aptible-cli-0.16.0 spec/fabricators/account_fabricator.rb
aptible-cli-0.15.2 spec/fabricators/account_fabricator.rb
aptible-cli-0.15.1 spec/fabricators/account_fabricator.rb
aptible-cli-0.15.0 spec/fabricators/account_fabricator.rb