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:
Diffstat (limited to 'spec/services/users/update_service_spec.rb')
-rw-r--r--spec/services/users/update_service_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/users/update_service_spec.rb b/spec/services/users/update_service_spec.rb
index bdb154d8df3..c14d24221bd 100644
--- a/spec/services/users/update_service_spec.rb
+++ b/spec/services/users/update_service_spec.rb
@@ -14,10 +14,11 @@ describe Users::UpdateService do
end
it 'updates time preferences' do
- result = update_user(user, timezone: 'Warsaw', time_display_relative: true, time_format_in_24h: false)
+ result = update_user(user, timezone: 'Warsaw', timezone_name: 'Europe/Warsaw', time_display_relative: true, time_format_in_24h: false)
expect(result).to eq(status: :success)
expect(user.reload.timezone).to eq('Warsaw')
+ expect(user.reload.timezone_name).to eq('Europe/Warsaw')
expect(user.time_display_relative).to eq(true)
expect(user.time_format_in_24h).to eq(false)
end