summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/config/entry/only_policy_spec.rb
blob: 5518b68e51a5bebc3fd4e7255047b7ca03e07b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe Gitlab::Ci::Config::Entry::OnlyPolicy do
  let(:entry) { described_class.new(config) }

  it_behaves_like 'correct only except policy'

  describe '.default' do
    it 'haa a default value' do
      expect(described_class.default).to eq( { refs: %w[branches tags] } )
    end
  end
end