diff options
Diffstat (limited to 'spec/models/integrations/jira_spec.rb')
-rw-r--r-- | spec/models/integrations/jira_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/models/integrations/jira_spec.rb b/spec/models/integrations/jira_spec.rb index 9bb77f6d6d4..c87128db221 100644 --- a/spec/models/integrations/jira_spec.rb +++ b/spec/models/integrations/jira_spec.rb @@ -597,7 +597,7 @@ RSpec.describe Integrations::Jira, feature_category: :integrations do it 'uses the default GitLab::HTTP timeouts' do timeouts = Gitlab::HTTP::DEFAULT_TIMEOUT_OPTIONS - expect(Gitlab::HTTP).to receive(:httparty_perform_request) + expect(Gitlab::HTTP_V2::Client).to receive(:httparty_perform_request) .with(Net::HTTP::Get, '/foo', hash_including(timeouts)).and_call_original jira_integration.client.get('/foo') @@ -1372,4 +1372,12 @@ RSpec.describe Integrations::Jira, feature_category: :integrations do end end end + + describe '#avatar_url' do + it 'returns the avatar image path' do + expect(subject.avatar_url).to eq( + ActionController::Base.helpers.image_path('illustrations/third-party-logos/integrations-logos/jira.svg') + ) + end + end end |