diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2019-02-06 17:49:39 +0100 |
---|---|---|
committer | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2019-02-06 17:59:27 +0100 |
commit | 8ff943c280e67077662bbce524baf132b3d1919e (patch) | |
tree | 3c36ace06fbf8b08f02160dd7f3eb52f6b907a62 /app/helpers | |
parent | 15da40db553a6e7fd20d76d68bb07d895dfbfb85 (diff) | |
download | gitlab-ce-8ff943c280e67077662bbce524baf132b3d1919e.tar.gz |
Add tests for preferences_helper
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/preferences_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index f1513f4f680..bc1742e8167 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -50,10 +50,6 @@ module PreferencesHelper ] end - def default_first_day_of_week - first_day_of_week_choices.rassoc(Gitlab::CurrentSettings.first_day_of_week).first - end - def first_day_of_week_choices_with_default first_day_of_week_choices.unshift([_('System default (%{default})') % { default: default_first_day_of_week }, nil]) end @@ -81,4 +77,8 @@ module PreferencesHelper def excluded_dashboard_choices ['operations'] end + + def default_first_day_of_week + first_day_of_week_choices.rassoc(Gitlab::CurrentSettings.first_day_of_week).first + end end |