Codebase list ruby-gitlab / 95797632-ae5e-480c-891f-916730b2eac0/main spec / gitlab / api_spec.rb
95797632-ae5e-480c-891f-916730b2eac0/main

Tree @95797632-ae5e-480c-891f-916730b2eac0/main (Download .tar.gz)

api_spec.rb @95797632-ae5e-480c-891f-916730b2eac0/mainraw · history · blame

# frozen_string_literal: true

require 'spec_helper'

describe Gitlab::API do
  let(:default_headers) { subject.class.default_options[:headers] }

  describe '.default_options[:headers]' do
    it "has 'User-Agent'" do
      expect(default_headers).to include('User-Agent' => Gitlab::Configuration::DEFAULT_USER_AGENT)
    end
  end
end