diff options
author | Valery Sizov <valery@gitlab.com> | 2015-11-30 19:03:07 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-11-30 19:03:07 +0300 |
commit | f1504e1ad52df7aec241b93d0d015da13ddce5a9 (patch) | |
tree | b3eb4893b043cacc62a8ec474b99e4c3e9cd572a /spec/services/issues | |
parent | e92ceb7b57139e985674a44cfe75534c52ed4acd (diff) |
test fix
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/close_service_spec.rb | 4 | ||||
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/spec/services/issues/close_service_spec.rb b/spec/services/issues/close_service_spec.rb index db547ce0d50..d711e3da104 100644 --- a/spec/services/issues/close_service_spec.rb +++ b/spec/services/issues/close_service_spec.rb @@ -14,7 +14,9 @@ describe Issues::CloseService do describe :execute do context "valid params" do before do - @issue = Issues::CloseService.new(project, user, {}).execute(issue) + perform_enqueued_jobs do + @issue = Issues::CloseService.new(project, user, {}).execute(issue) + end end it { expect(@issue).to be_valid } diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index cc3e6483261..73d0b7f7abe 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -36,7 +36,10 @@ describe Issues::UpdateService do label_ids: [label.id] } - @issue = Issues::UpdateService.new(project, user, opts).execute(issue) + perform_enqueued_jobs do + @issue = Issues::UpdateService.new(project, user, opts).execute(issue) + end + @issue.reload end |