diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-10 15:08:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-10 15:08:58 +0300 |
commit | 0211553b0cd32ddcd49fbe61fdb318984d15af18 (patch) | |
tree | f95d5876dfee2d1ff158f38a676167501e6519db /spec/models | |
parent | 23ff717a29540bb1d4b0068f164b5f9df99386bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_metrics_setting_spec.rb | 10 |
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 |