summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/models/runners_token_prefix_shared_examples.rb
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