mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
16 lines
368 B
Ruby
16 lines
368 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe Gitlab::LogTimestampFormatter do
|
|
subject { described_class.new }
|
|
|
|
let(:formatted_timestamp) { Time.now.utc.iso8601(3) }
|
|
|
|
it 'logs the timestamp in UTC and ISO8601.3 format' do
|
|
freeze_time do
|
|
expect(subject.call('', Time.now, '', '')).to include formatted_timestamp
|
|
end
|
|
end
|
|
end
|