diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-16 06:10:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-16 06:10:28 +0300 |
commit | e5aec0ddbc6e3122f5e2425e92b30c4cd2184c90 (patch) | |
tree | 625a0e8675629b08d90041db70d4f833e31f2eec /spec | |
parent | e7da7e417c5f09cb673b1c9aca085b53b38bbe68 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/usage/metrics/instrumentations/installation_creation_date_metric_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/lib/gitlab/usage/metrics/instrumentations/installation_creation_date_metric_spec.rb b/spec/lib/gitlab/usage/metrics/instrumentations/installation_creation_date_metric_spec.rb deleted file mode 100644 index ff6be56c13f..00000000000 --- a/spec/lib/gitlab/usage/metrics/instrumentations/installation_creation_date_metric_spec.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Gitlab::Usage::Metrics::Instrumentations::InstallationCreationDateMetric, - feature_category: :service_ping do - context 'with a root user' do - let_it_be(:root) { create(:user, id: 1) } - let_it_be(:expected_value) { root.reload.created_at } # reloading to get the timestamp from the database - - it_behaves_like 'a correct instrumented metric value', { time_frame: 'all', data_source: 'database' } - end - - context 'without a root user' do - let_it_be(:another_user) { create(:user, id: 2) } - let_it_be(:expected_value) { nil } - - it_behaves_like 'a correct instrumented metric value', { time_frame: 'all', data_source: 'database' } - end -end |