summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/ci/build/artifacts/metadata/path_spec.rb8
-rw-r--r--spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/lib/gitlab/ci/build/artifacts/metadata/path_spec.rb b/spec/lib/gitlab/ci/build/artifacts/metadata/path_spec.rb
index 148d05b5902..3b254c3ce2f 100644
--- a/spec/lib/gitlab/ci/build/artifacts/metadata/path_spec.rb
+++ b/spec/lib/gitlab/ci/build/artifacts/metadata/path_spec.rb
@@ -108,14 +108,14 @@ describe Gitlab::Ci::Build::Artifacts::Metadata::Path do
end
end
- describe '#nodes', path: './test' do
+ describe '#nodes', path: 'test' do
subject { |example| path(example).nodes }
- it { is_expected.to eq 2 }
+ it { is_expected.to eq 1 }
end
- describe '#nodes', path: './test/' do
+ describe '#nodes', path: 'test/' do
subject { |example| path(example).nodes }
- it { is_expected.to eq 2 }
+ it { is_expected.to eq 1 }
end
describe '#metadata' do
diff --git a/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb b/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb
index 36c4851126c..456314768be 100644
--- a/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb
+++ b/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb
@@ -28,8 +28,8 @@ describe Gitlab::Ci::Build::Artifacts::Metadata do
end
end
- describe '#match! other_artifacts_0.1.2' do
- subject { metadata('other_artifacts_0.1.2').match! }
+ describe '#match! other_artifacts_0.1.2/' do
+ subject { metadata('other_artifacts_0.1.2/').match! }
it 'matches correct paths' do
expect(subject.first).
@@ -39,7 +39,7 @@ describe Gitlab::Ci::Build::Artifacts::Metadata do
end
end
- describe '#match! other_artifacts_0.1.2/another-subdirectory' do
+ describe '#match! other_artifacts_0.1.2/another-subdirectory/' do
subject { metadata('other_artifacts_0.1.2/another-subdirectory/').match! }
it 'matches correct paths' do
@@ -52,7 +52,7 @@ describe Gitlab::Ci::Build::Artifacts::Metadata do
describe '#to_path' do
subject { metadata('').to_path }
- it { is_expected.to be_an_instance_of(Gitlab::Ci::Build::Artifacts::Metdata::Path) }
+ it { is_expected.to be_an_instance_of(Gitlab::Ci::Build::Artifacts::Metadata::Path) }
end
describe '#full_version' do