Skip to content
Snippets Groups Projects
Commit f0211a4e authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Do not pass params that are not used in issue move service

parent a2f25ed6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -92,7 +92,7 @@ class Projects::IssuesController < Projects::ApplicationController
 
if params[:move_to_project_id].to_i > 0
new_project = Project.find(params[:move_to_project_id])
move_service = Issues::MoveService.new(project, current_user, issue_params)
move_service = Issues::MoveService.new(project, current_user)
@issue = move_service.execute(@issue, new_project)
end
 
Loading
Loading
Loading
Loading
@@ -7,7 +7,6 @@ describe Issues::MoveService, services: true do
let(:description) { 'Some issue description' }
let(:old_project) { create(:project) }
let(:new_project) { create(:project) }
let(:issue_params) { old_issue.serializable_hash }
 
let(:old_issue) do
create(:issue, title: title, description: description,
Loading
Loading
@@ -15,7 +14,7 @@ describe Issues::MoveService, services: true do
end
 
let(:move_service) do
described_class.new(old_project, user, issue_params)
described_class.new(old_project, user)
end
 
shared_context 'user can move issue' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment