Welcome to mirror list, hosted at ThFree Co, Russian Federation.

runners_token_prefix_shared_examples.rb « models « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4dce445ac73971852c2df970234293455d06e79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

RSpec.shared_examples 'it has a prefixable runners_token' do
  describe '#runners_token' do
    it 'has a runners_token_prefix' do
      expect(subject.runners_token_prefix).not_to be_empty
    end

    it 'starts with the runners_token_prefix' do
      expect(subject.runners_token).to start_with(subject.runners_token_prefix)
    end
  end
end