Commit 1565d7f6 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Remove readme-only project view preference

parent b70d151d
......@@ -35,9 +35,8 @@ module PreferencesHelper
def project_view_choices
[
['Readme', :readme],
['Activity view', :activity],
['Files and Readme (default)', :files]
['Files and Readme (default)', :files],
['Activity view', :activity]
]
end
......
---
title: Remove readme-only project view preference
merge_request:
author:
......@@ -158,14 +158,6 @@ describe ProjectsController do
expect(response).to render_template('_activity')
end
it "renders the readme view" do
allow(controller).to receive(:current_user).and_return(user)
allow(user).to receive(:project_view).and_return('readme')
get :show, namespace_id: public_project.namespace, id: public_project
expect(response).to render_template('_readme')
end
it "renders the files view" do
allow(controller).to receive(:current_user).and_return(user)
allow(user).to receive(:project_view).and_return('files')
......
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