提交 52b9cead 编写于 作者: R Rémy Coutable

Merge branch 'rails5-fix-pages-controller' into 'master'

Rails5 fix Projects::PagesController spec

See merge request gitlab-org/gitlab-ce!20007
---
title: Rails5 fix Projects::PagesController spec
merge_request: 20007
author: Jasper Maes
type: fixed
......@@ -71,7 +71,7 @@ describe Projects::PagesController do
{
namespace_id: project.namespace,
project_id: project,
project: { pages_https_only: false }
project: { pages_https_only: 'false' }
}
end
......@@ -96,7 +96,7 @@ describe Projects::PagesController do
it 'calls the update service' do
expect(Projects::UpdateService)
.to receive(:new)
.with(project, user, request_params[:project])
.with(project, user, ActionController::Parameters.new(request_params[:project]).permit!)
.and_return(update_service)
patch :update, request_params
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册