diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-18 09:29:21 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-18 09:29:21 +0000 |
commit | 951e89127661150cdc23b8806085934ffdc4640f (patch) | |
tree | 749c143ec3fff497bb44505e2ce0ed4b8ff55555 /spec | |
parent | 5dede999835c00f8be9b93ddb8d6fb5835357aa9 (diff) | |
parent | 9afc4f9d11c83a2371c7f7356ec66b01f5b519b6 (diff) | |
download | gitlab-ce-951e89127661150cdc23b8806085934ffdc4640f.tar.gz |
Merge branch '57680-roulette-ignores-changelogs' into 'master'
Reviewer roulette ignores changelogs
Closes #57680
See merge request gitlab-org/gitlab-ce!25264
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/danger/helper_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/gitlab/danger/helper_spec.rb b/spec/lib/gitlab/danger/helper_spec.rb index ac3e4b04230..793cac593a2 100644 --- a/spec/lib/gitlab/danger/helper_spec.rb +++ b/spec/lib/gitlab/danger/helper_spec.rb @@ -184,7 +184,7 @@ describe Gitlab::Danger::Helper do describe '#changes_by_category' do it 'categorizes changed files' do - expect(fake_git).to receive(:added_files) { %w[foo foo.md foo.rb foo.js db/foo qa/foo] } + expect(fake_git).to receive(:added_files) { %w[foo foo.md foo.rb foo.js db/foo qa/foo ee/changelogs/foo.yml] } allow(fake_git).to receive(:modified_files) { [] } allow(fake_git).to receive(:renamed_files) { [] } @@ -193,6 +193,7 @@ describe Gitlab::Danger::Helper do database: %w[db/foo], docs: %w[foo.md], frontend: %w[foo.js], + none: %w[ee/changelogs/foo.yml], qa: %w[qa/foo], unknown: %w[foo] ) @@ -260,6 +261,9 @@ describe Gitlab::Danger::Helper do 'ee/db/foo' | :database 'ee/qa/foo' | :qa + 'changelogs/foo' | :none + 'ee/changelogs/foo' | :none + 'FOO' | :unknown 'foo' | :unknown @@ -283,6 +287,7 @@ describe Gitlab::Danger::Helper do :docs | '~Documentation' :foo | '~foo' :frontend | '~frontend' + :none | '' :qa | '~QA' end |