diff options
author | Valery Sizov <valery@gitlab.com> | 2017-09-20 12:10:23 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2017-09-20 12:10:47 +0300 |
commit | 3940ac85200d43555e215a4f7e198999617b896a (patch) | |
tree | 2b9aabd0989db888df687834d75ce942e8fc2ad6 /spec/controllers | |
parent | 172bae0c9d841f035ba0f2a528c3bae822717a30 (diff) | |
download | gitlab-ce-3940ac85200d43555e215a4f7e198999617b896a.tar.gz |
Pulling merge_method spec for project_controller_spec from EE[ci skip]
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects_controller_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/controllers/projects_controller_spec.rb b/spec/controllers/projects_controller_spec.rb index 4459e227fb3..2a91a6613e6 100644 --- a/spec/controllers/projects_controller_spec.rb +++ b/spec/controllers/projects_controller_spec.rb @@ -289,6 +289,24 @@ describe ProjectsController do end end + it 'updates Fast Forward Merge attributes' do + controller.instance_variable_set(:@project, project) + + params = { + merge_method: :ff + } + + put :update, + namespace_id: project.namespace, + id: project.id, + project: params + + expect(response).to have_http_status(302) + params.each do |param, value| + expect(project.public_send(param)).to eq(value) + end + end + def update_project(**parameters) put :update, namespace_id: project.namespace.path, |