Commit 1637e178 authored by Robert Speicher's avatar Robert Speicher

Merge branch '13313-fix-deprecation-warnings' into 'master'

Fix deprecation warnings in spec/services/issues/bulk_update_service_spec.rb

Fixes #13313.

See merge request !4441
parents 6eda07b7 34007aa0
...@@ -18,7 +18,7 @@ describe Issues::BulkUpdateService, services: true do ...@@ -18,7 +18,7 @@ describe Issues::BulkUpdateService, services: true do
@issues = create_list(:issue, 5, project: @project) @issues = create_list(:issue, 5, project: @project)
@params = { @params = {
state_event: 'close', state_event: 'close',
issues_ids: @issues.map(&:id) issues_ids: @issues.map(&:id).join(",")
} }
end end
...@@ -38,7 +38,7 @@ describe Issues::BulkUpdateService, services: true do ...@@ -38,7 +38,7 @@ describe Issues::BulkUpdateService, services: true do
@issues = create_list(:closed_issue, 5, project: @project) @issues = create_list(:closed_issue, 5, project: @project)
@params = { @params = {
state_event: 'reopen', state_event: 'reopen',
issues_ids: @issues.map(&:id) issues_ids: @issues.map(&:id).join(",")
} }
end end
...@@ -58,7 +58,7 @@ describe Issues::BulkUpdateService, services: true do ...@@ -58,7 +58,7 @@ describe Issues::BulkUpdateService, services: true do
before do before do
@new_assignee = create :user @new_assignee = create :user
@params = { @params = {
issues_ids: [issue.id], issues_ids: issue.id.to_s,
assignee_id: @new_assignee.id assignee_id: @new_assignee.id
} }
end end
...@@ -97,7 +97,7 @@ describe Issues::BulkUpdateService, services: true do ...@@ -97,7 +97,7 @@ describe Issues::BulkUpdateService, services: true do
before do before do
@milestone = create(:milestone, project: @project) @milestone = create(:milestone, project: @project)
@params = { @params = {
issues_ids: [issue.id], issues_ids: issue.id.to_s,
milestone_id: @milestone.id milestone_id: @milestone.id
} }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment