提交 7e6a17a2 编写于 作者: R Rémy Coutable

Merge branch 'sh-fix-web-hook-spec-ruby-2.6' into 'master'

Fix WebHookService spec failing in Ruby 2.6

See merge request gitlab-org/gitlab-ce!25317
......@@ -102,7 +102,7 @@ describe WebHookService do
exception = exception_class.new('Exception message')
WebMock.stub_request(:post, project_hook.url).to_raise(exception)
expect(service_instance.execute).to eq({ status: :error, message: exception.message })
expect(service_instance.execute).to eq({ status: :error, message: exception.to_s })
expect { service_instance.execute }.not_to raise_error
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册