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:
Diffstat (limited to 'spec/models/ci/pipeline_artifact_spec.rb')
-rw-r--r--spec/models/ci/pipeline_artifact_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/ci/pipeline_artifact_spec.rb b/spec/models/ci/pipeline_artifact_spec.rb
index 3038cdc944b..eb89c7af208 100644
--- a/spec/models/ci/pipeline_artifact_spec.rb
+++ b/spec/models/ci/pipeline_artifact_spec.rb
@@ -101,7 +101,7 @@ RSpec.describe Ci::PipelineArtifact, type: :model do
end
describe '.report_exists?' do
- subject(:pipeline_artifact) { Ci::PipelineArtifact.report_exists?(file_type) }
+ subject(:pipeline_artifact) { described_class.report_exists?(file_type) }
context 'when file_type is code_coverage' do
let(:file_type) { :code_coverage }
@@ -149,7 +149,7 @@ RSpec.describe Ci::PipelineArtifact, type: :model do
end
describe '.find_by_file_type' do
- subject(:pipeline_artifact) { Ci::PipelineArtifact.find_by_file_type(file_type) }
+ subject(:pipeline_artifact) { described_class.find_by_file_type(file_type) }
context 'when file_type is code_coverage' do
let(:file_type) { :code_coverage }
@@ -204,7 +204,7 @@ RSpec.describe Ci::PipelineArtifact, type: :model do
let(:size) { file['tempfile'].size }
subject do
- Ci::PipelineArtifact.create_or_replace_for_pipeline!(
+ described_class.create_or_replace_for_pipeline!(
pipeline: pipeline,
file_type: file_type,
file: file,
@@ -231,7 +231,7 @@ RSpec.describe Ci::PipelineArtifact, type: :model do
end
it "creates a new pipeline artifact with pipeline's locked state" do
- artifact = Ci::PipelineArtifact.create_or_replace_for_pipeline!(
+ artifact = described_class.create_or_replace_for_pipeline!(
pipeline: pipeline,
file_type: file_type,
file: file,