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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-11 12:12:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-11 12:12:15 +0300
commita48957b317edf23b1bcfc6df0c098a824eae86f4 (patch)
tree9a8ce03341e088db5cdba549f4a2fee6afef6e3c /spec/tooling/lib
parenta3e10bf32044486be8923176581670cf9ccacc8b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tooling/lib')
-rw-r--r--spec/tooling/lib/tooling/mappings/js_to_system_specs_mappings_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/tooling/lib/tooling/mappings/js_to_system_specs_mappings_spec.rb b/spec/tooling/lib/tooling/mappings/js_to_system_specs_mappings_spec.rb
index 156d656e0a1..c36d14cd267 100644
--- a/spec/tooling/lib/tooling/mappings/js_to_system_specs_mappings_spec.rb
+++ b/spec/tooling/lib/tooling/mappings/js_to_system_specs_mappings_spec.rb
@@ -181,6 +181,30 @@ RSpec.describe Tooling::Mappings::JsToSystemSpecsMappings, feature_category: :to
instance.system_specs_for_edition(edition)
end
+ let(:edition) { nil }
+
+ context 'when a file is not a ruby spec' do
+ before do
+ File.write("#{system_specs_base_folder}/issues_spec.tar.gz", "a test")
+ end
+
+ it 'does not return that file' do
+ expect(subject).to be_empty
+ end
+ end
+
+ context 'when a file is a ruby spec' do
+ let(:spec_pathname) { "#{system_specs_base_folder}/issues_spec.rb" }
+
+ before do
+ File.write(spec_pathname, "a test")
+ end
+
+ it 'returns that file' do
+ expect(subject).to match_array(spec_pathname)
+ end
+ end
+
context 'when FOSS' do
let(:edition) { nil }