File: client_spec.rb

package info (click to toggle)
ruby-gitlab 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,660 kB
  • sloc: ruby: 12,582; makefile: 7; sh: 4
file content (13 lines) | stat: -rw-r--r-- 333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.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