Sha256: 30d2f3c2e3520286ee905082b58eff83207e7969a89ab898352bd88add6611ce

Contents?: true

Size: 339 Bytes

Versions: 11

Compression:

Stored size: 339 Bytes

Contents

class StubOperation < OpenStruct; end

def mock_logs_url(id)
  "https://api.aptible.com/operations/#{id}/logs"
end

Fabricator(:operation, from: :stub_operation) do
  status 'queued'
  errors { Aptible::Resource::Errors.new }
  resource { Fabricate(:app) }
  after_save { |operation| operation.logs_url = mock_logs_url(operation.id) }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aptible-cli-0.24.2 spec/fabricators/operation_fabricator.rb
aptible-cli-0.24.1 spec/fabricators/operation_fabricator.rb
aptible-cli-0.24.0 spec/fabricators/operation_fabricator.rb
aptible-cli-0.23.0 spec/fabricators/operation_fabricator.rb
aptible-cli-0.22.0 spec/fabricators/operation_fabricator.rb
aptible-cli-0.21.0 spec/fabricators/operation_fabricator.rb
aptible-cli-0.20.0 spec/fabricators/operation_fabricator.rb
aptible-cli-0.19.9 spec/fabricators/operation_fabricator.rb
aptible-cli-0.19.7 spec/fabricators/operation_fabricator.rb
aptible-cli-0.19.6 spec/fabricators/operation_fabricator.rb
aptible-cli-0.19.4 spec/fabricators/operation_fabricator.rb