Commit c98b8ec1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'master' into 'ce-to-ee'

# Conflicts:
#   app/helpers/preferences_helper.rb
parents aa88789f 0f6d2ca8
......@@ -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