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/ref_spec.rb')
-rw-r--r--spec/models/ci/ref_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/ref_spec.rb b/spec/models/ci/ref_spec.rb
index eab5a40bc30..a60aed98a21 100644
--- a/spec/models/ci/ref_spec.rb
+++ b/spec/models/ci/ref_spec.rb
@@ -74,7 +74,7 @@ RSpec.describe Ci::Ref do
it 'returns an existing ci_ref' do
expect { subject }.not_to change { described_class.count }
- expect(subject).to eq(Ci::Ref.find_by(project_id: project.id, ref_path: expected_ref_path))
+ expect(subject).to eq(described_class.find_by(project_id: project.id, ref_path: expected_ref_path))
end
end
@@ -84,7 +84,7 @@ RSpec.describe Ci::Ref do
it 'creates a new ci_ref' do
expect { subject }.to change { described_class.count }.by(1)
- expect(subject).to eq(Ci::Ref.find_by(project_id: project.id, ref_path: expected_ref_path))
+ expect(subject).to eq(described_class.find_by(project_id: project.id, ref_path: expected_ref_path))
end
end
end