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

Fix spec

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