diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-31 16:33:18 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-03 17:14:23 -0500 |
commit | 7df4a3c53a654782c6ca2214d8a5bd452b52835b (patch) | |
tree | 3ebdbbc61b239231d3849b7bea9c7697884063c5 /spec/services | |
parent | 22b8b9a7f399abb685e95ea5669beb033d30101b (diff) | |
download | gitlab-ce-7df4a3c53a654782c6ca2214d8a5bd452b52835b.tar.gz |
Fix spec
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/issues/bulk_update_service_spec.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/spec/services/issues/bulk_update_service_spec.rb b/spec/services/issues/bulk_update_service_spec.rb index ad19fe0f151..4a689e64dc5 100644 --- a/spec/services/issues/bulk_update_service_spec.rb +++ b/spec/services/issues/bulk_update_service_spec.rb @@ -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(',') } |