diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 15:08:46 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 15:08:46 +0000 |
commit | 3f9e1b261121f4dbd045341241f81b47356c99cf (patch) | |
tree | 32be23bd7fda0c3f891182f220f6d0399a1b41dd /spec/services/issues | |
parent | 5ad0cf26551baff8f08af8562a8d45e6ec14d71a (diff) | |
download | gitlab-ce-3f9e1b261121f4dbd045341241f81b47356c99cf.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/create_service_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/issues/create_service_spec.rb b/spec/services/issues/create_service_spec.rb index 5dc6b6176ee..bb68a8dcbbb 100644 --- a/spec/services/issues/create_service_spec.rb +++ b/spec/services/issues/create_service_spec.rb @@ -385,7 +385,7 @@ describe Issues::CreateService do context 'when recaptcha was not verified' do before do - expect_next_instance_of(SpamService) do |spam_service| + expect_next_instance_of(SpamCheckService) do |spam_service| expect(spam_service).to receive_messages(check_for_spam?: true) end end @@ -408,7 +408,7 @@ describe Issues::CreateService do it 'creates a new spam_log' do expect { issue } - .to log_spam(title: issue.title, description: issue.description, user_id: user.id, noteable_type: 'Issue') + .to have_spam_log(title: issue.title, description: issue.description, user_id: user.id, noteable_type: 'Issue') end it 'assigns a spam_log to an issue' do @@ -431,7 +431,7 @@ describe Issues::CreateService do it 'creates a new spam_log' do expect { issue } - .to log_spam(title: issue.title, description: issue.description, user_id: user.id, noteable_type: 'Issue') + .to have_spam_log(title: issue.title, description: issue.description, user_id: user.id, noteable_type: 'Issue') end it 'assigns a spam_log to an issue' do |