summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-20 23:56:54 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-20 23:56:54 +0800
commit01dcb5c2623f2123bdf6d7d6164aa90c35796f8a (patch)
tree1bf5eb58925152a0324f2e877c1807156acd0cfe
parentcaf6438a2495c09a10f047d18a67b7071d05f7a2 (diff)
downloadgitlab-ce-01dcb5c2623f2123bdf6d7d6164aa90c35796f8a.tar.gz
Lose unneeded instance variables and variables, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347#note_13202326
-rw-r--r--spec/models/project_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 91b24e03793..c25c971c606 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -1134,12 +1134,12 @@ describe Project, models: true do
context 'with many builds' do
before do
- @pipeline1 = create_pipeline
- @pipeline2 = create_pipeline
- @build1_p2 = create_build(@pipeline2, 'test')
- @build1_p1 = create_build(@pipeline1, 'test')
- @build2_p1 = create_build(@pipeline1, 'test2')
- @build2_p2 = create_build(@pipeline2, 'test2')
+ pipeline1 = create_pipeline
+ pipeline2 = create_pipeline
+ @build1_p2 = create_build(pipeline2, 'test')
+ create_build(pipeline1, 'test')
+ create_build(pipeline1, 'test2')
+ @build2_p2 = create_build(pipeline2, 'test2')
end
it 'gives the latest builds from latest pipeline' do