Rails5 fix Projects::PagesController spec

This commit is contained in:
Jasper Maes 2018-06-19 22:47:58 +02:00
parent e0da61bca8
commit 74bb2e728b
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
title: Rails5 fix Projects::PagesController spec
merge_request: 20007
author: Jasper Maes
type: fixed

View File

@ -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