summaryrefslogtreecommitdiff
path: root/spec/models/build_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/build_spec.rb')
-rw-r--r--spec/models/build_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index ac148cec6b0..7333a8151cc 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -675,14 +675,10 @@ describe Ci::Build, models: true do
end
describe 'Project#latest_successful_builds_for' do
- let(:build) do
+ let!(:build) do
create(:ci_build, :artifacts, :success, pipeline: pipeline)
end
- before do
- build
- end
-
context 'with succeed pipeline' do
it 'returns builds from ref' do
builds = project.latest_successful_builds_for('fix')