Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-08 12:08:31 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-08 12:08:31 +0300
commit49a897eff9081b39665a4827b4f685e142569b99 (patch)
tree302e8c9fad985adb1302feda35cca079302cd542 /spec/workers/new_issue_worker_spec.rb
parenta69bb17d1e46f2816c3406d24c4dcdcb6d479935 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/new_issue_worker_spec.rb')
-rw-r--r--spec/workers/new_issue_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/new_issue_worker_spec.rb b/spec/workers/new_issue_worker_spec.rb
index d56732770a3..570b5d9c06e 100644
--- a/spec/workers/new_issue_worker_spec.rb
+++ b/spec/workers/new_issue_worker_spec.rb
@@ -15,7 +15,7 @@ RSpec.describe NewIssueWorker do
end
it 'logs an error' do
- expect(Rails.logger).to receive(:error).with('NewIssueWorker: couldn\'t find Issue with ID=99, skipping job')
+ expect(Gitlab::AppLogger).to receive(:error).with('NewIssueWorker: couldn\'t find Issue with ID=99, skipping job')
worker.perform(99, create(:user).id)
end
@@ -32,7 +32,7 @@ RSpec.describe NewIssueWorker do
it 'logs an error' do
issue = create(:issue)
- expect(Rails.logger).to receive(:error).with('NewIssueWorker: couldn\'t find User with ID=99, skipping job')
+ expect(Gitlab::AppLogger).to receive(:error).with('NewIssueWorker: couldn\'t find User with ID=99, skipping job')
worker.perform(issue.id, 99)
end