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

changes_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: cf52f601006bca9332850837da2b0a6295e0a78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Ci::Build::Rules::Rule::Clause::Changes do
  describe '#satisfied_by?' do
    it_behaves_like 'a glob matching rule' do
      let(:pipeline) { build(:ci_pipeline) }

      before do
        allow(pipeline).to receive(:modified_paths).and_return(files.keys)
      end

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