Sha256: e7a328fd793a967fcfe10724f2b15ce806b5359647bd9b2563c6f6330e65a0b1

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

class StubBackupRetentionPolicy < OpenStruct
  def reload
    self
  end
end

Fabricator(:backup_retention_policy, from: :stub_backup_retention_policy) do
  id { sequence(:backup_retention_policy_id) }
  created_at { Time.now }
  daily { 30 }
  monthly { 12 }
  yearly { 6 }
  make_copy { true }
  keep_final { true }
  account

  after_create { |policy| policy.account.backup_retention_policies << policy }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aptible-cli-0.22.0 spec/fabricators/backup_retention_policy_fabricator.rb
aptible-cli-0.21.0 spec/fabricators/backup_retention_policy_fabricator.rb