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

exists_spec.rb « clause « rule « rules « build « ci « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c016216304aeb95418b177a3f75293a5b7e63684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

describe Gitlab::Ci::Build::Rules::Rule::Clause::Exists do
  describe '#satisfied_by?' do
    it_behaves_like 'a glob matching rule' do
      let(:project) { create(:project, :custom_repo, files: files) }
      let(:pipeline) { build(:ci_pipeline, project: project, sha: project.repository.head_commit.sha) }

      subject { described_class.new(globs).satisfied_by?(pipeline, nil) }
    end
  end
end