Commit f22d80ad authored by Robert Speicher's avatar Robert Speicher

Make the dashboard choice text match the text in the sidebar

cherry-picked
parent 8dfe01cb
...@@ -6,8 +6,8 @@ module PreferencesHelper ...@@ -6,8 +6,8 @@ module PreferencesHelper
orig = User.dashboards.keys orig = User.dashboards.keys
choices = [ choices = [
['Projects (default)', orig[0]], ['Your Projects (default)', orig[0]],
['Starred Projects', orig[1]] ['Starred Projects', orig[1]]
] ]
if orig.size != choices.size if orig.size != choices.size
......
...@@ -13,8 +13,8 @@ describe PreferencesHelper do ...@@ -13,8 +13,8 @@ describe PreferencesHelper do
it 'provides better option descriptions' do it 'provides better option descriptions' do
choices = dashboard_choices choices = dashboard_choices
expect(choices[0]).to eq ['Projects (default)', 'projects'] expect(choices[0]).to eq ['Your Projects (default)', 'projects']
expect(choices[1]).to eq ['Starred Projects', 'stars'] expect(choices[1]).to eq ['Starred Projects', 'stars']
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment