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