diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-24 15:06:34 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-24 15:06:34 +0000 |
commit | f1a5755898e865428c923587402fd965b601c4ea (patch) | |
tree | a93aab01a1d3ba0e93c0fbf1450babfe4674f9dc /spec/lib/gitlab/ci/build/rules/rule/clause/changes_spec.rb | |
parent | 1ae627c65192ae1a01fdac253065ef561a9d6b7e (diff) | |
download | gitlab-ce-f1a5755898e865428c923587402fd965b601c4ea.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/ci/build/rules/rule/clause/changes_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/build/rules/rule/clause/changes_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/build/rules/rule/clause/changes_spec.rb b/spec/lib/gitlab/ci/build/rules/rule/clause/changes_spec.rb new file mode 100644 index 00000000000..076de3646b0 --- /dev/null +++ b/spec/lib/gitlab/ci/build/rules/rule/clause/changes_spec.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +require 'spec_helper' + +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 |