mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
Make the dashboard choice text match the text in the sidebar
cherry-picked
This commit is contained in:
@@ -6,8 +6,8 @@ module PreferencesHelper
|
||||
orig = User.dashboards.keys
|
||||
|
||||
choices = [
|
||||
['Projects (default)', orig[0]],
|
||||
['Starred Projects', orig[1]]
|
||||
['Your Projects (default)', orig[0]],
|
||||
['Starred Projects', orig[1]]
|
||||
]
|
||||
|
||||
if orig.size != choices.size
|
||||
|
||||
@@ -13,8 +13,8 @@ describe PreferencesHelper do
|
||||
it 'provides better option descriptions' do
|
||||
choices = dashboard_choices
|
||||
|
||||
expect(choices[0]).to eq ['Projects (default)', 'projects']
|
||||
expect(choices[1]).to eq ['Starred Projects', 'stars']
|
||||
expect(choices[0]).to eq ['Your Projects (default)', 'projects']
|
||||
expect(choices[1]).to eq ['Starred Projects', 'stars']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user