Commit 7df4a3c5 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fix spec

parent 22b8b9a7
......@@ -6,7 +6,7 @@
= dropdown_title(title)
= dropdown_filter(filter_placeholder)
= dropdown_content
- if @project and show_footer
- if @project && show_footer
= dropdown_footer do
%ul.dropdown-footer-list
- if can?(current_user, :admin_label, @project)
......
......@@ -6,9 +6,10 @@ describe Issues::BulkUpdateService, services: true do
let!(:result) { Issues::BulkUpdateService.new(project, user, params).execute }
before do
@issues = create_list(:issue, 5, project: @project)
@params = {
describe :close_issue do
let(:issues) { create_list(:issue, 5, project: project) }
let(:params) do
{
state_event: 'close',
issues_ids: issues.map(&:id).join(',')
}
......@@ -26,9 +27,9 @@ describe Issues::BulkUpdateService, services: true do
end
describe :reopen_issues do
before do
@issues = create_list(:closed_issue, 5, project: @project)
@params = {
let(:issues) { create_list(:closed_issue, 5, project: project) }
let(:params) do
{
state_event: 'reopen',
issues_ids: issues.map(&:id).join(',')
}
......
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