Rails5 fix Projects::PagesController spec
This commit is contained in:
parent
e0da61bca8
commit
74bb2e728b
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
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,
|
namespace_id: project.namespace,
|
||||||
project_id: project,
|
project_id: project,
|
||||||
project: { pages_https_only: false }
|
project: { pages_https_only: 'false' }
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -96,7 +96,7 @@ describe Projects::PagesController do
|
||||||
it 'calls the update service' do
|
it 'calls the update service' do
|
||||||
expect(Projects::UpdateService)
|
expect(Projects::UpdateService)
|
||||||
.to receive(:new)
|
.to receive(:new)
|
||||||
.with(project, user, request_params[:project])
|
.with(project, user, ActionController::Parameters.new(request_params[:project]).permit!)
|
||||||
.and_return(update_service)
|
.and_return(update_service)
|
||||||
|
|
||||||
patch :update, request_params
|
patch :update, request_params
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue