Fix spec
This commit is contained in:
parent
22b8b9a7f3
commit
7df4a3c53a
2 changed files with 8 additions and 7 deletions
|
@ -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(',')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue