Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-10 15:08:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-10 15:08:58 +0300
commit0211553b0cd32ddcd49fbe61fdb318984d15af18 (patch)
treef95d5876dfee2d1ff158f38a676167501e6519db /spec/models
parent23ff717a29540bb1d4b0068f164b5f9df99386bf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_metrics_setting_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/project_metrics_setting_spec.rb b/spec/models/project_metrics_setting_spec.rb
index 7df01625ba1..c6f668a11bc 100644
--- a/spec/models/project_metrics_setting_spec.rb
+++ b/spec/models/project_metrics_setting_spec.rb
@@ -44,12 +44,12 @@ describe ProjectMetricsSetting do
it { is_expected.to be_valid }
end
- context 'external_dashboard_url is blank' do
- before do
- subject.external_dashboard_url = ''
- end
+ context 'dashboard_timezone' do
+ it { is_expected.to define_enum_for(:dashboard_timezone).with_values({ local: 0, utc: 1 }) }
- it { is_expected.to be_invalid }
+ it 'defaults to local' do
+ expect(subject.dashboard_timezone).to eq('local')
+ end
end
end
end