Codebase list ruby-gitlab / 70d59bf spec / gitlab / client / client_spec.rb
70d59bf

Tree @70d59bf (Download .tar.gz)

client_spec.rb @70d59bfraw · history · blame

# frozen_string_literal: true

require 'spec_helper'

describe Gitlab::Client do
  describe '#inspect' do
    it 'masks tokens on inspect' do
      client = described_class.new(private_token: 'ui3gIYf4MMzTx-Oh5cEBx')
      inspected = client.inspect
      expect(inspected).to include('****************cEBx')
    end
  end
end