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