diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-27 12:27:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-27 12:27:52 +0300 |
commit | 996683657578757cf42ef7478a5c3b9874b312f0 (patch) | |
tree | adbc8884ee6f1fb381ea027fa8b51f68143c9dcf /spec/tooling | |
parent | 3fbe43541ef99c27a9e4ab9c545ec0eb9bb50a9e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tooling')
-rw-r--r-- | spec/tooling/lib/tooling/find_changes_spec.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/spec/tooling/lib/tooling/find_changes_spec.rb b/spec/tooling/lib/tooling/find_changes_spec.rb index 37e590858cf..43c3da5699d 100644 --- a/spec/tooling/lib/tooling/find_changes_spec.rb +++ b/spec/tooling/lib/tooling/find_changes_spec.rb @@ -182,8 +182,8 @@ RSpec.describe Tooling::FindChanges, feature_category: :tooling do end end - describe '#only_js_files_changed' do - subject { instance.only_js_files_changed } + describe '#only_allowed_files_changed' do + subject { instance.only_allowed_files_changed } context 'when fetching changes from changed files' do let(:from) { :changed_files } @@ -200,8 +200,16 @@ RSpec.describe Tooling::FindChanges, feature_category: :tooling do end end - context 'when changed files contain not only *.js changes' do - let(:changed_files_file_content) { 'a.js b.rb' } + context 'when changed files contain both *.vue and *.js changes' do + let(:changed_files_file_content) { 'a.js b.vue' } + + it 'returns true' do + expect(subject).to be true + end + end + + context 'when changed files contain not allowed changes' do + let(:changed_files_file_content) { 'a.js b.vue c.rb' } it 'returns false' do expect(subject).to be false |