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:
authorShinya Maeda <shinya@gitlab.com>2018-03-06 14:33:42 +0300
committerShinya Maeda <shinya@gitlab.com>2018-03-06 14:33:42 +0300
commitc428aaac6613b9fcfecd479f7bb510a6e74b761c (patch)
treed042066f5be08e44de77bd22bce5829c930bd661 /spec/features
parent6066437385fa0527e97d93fbac46eb6e455a219b (diff)
Revert unnecessary code running_or_pending_build_count removal
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/jobs/user_browses_job_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/projects/jobs/user_browses_job_spec.rb b/spec/features/projects/jobs/user_browses_job_spec.rb
index 48462c193f1..4c49cff30d4 100644
--- a/spec/features/projects/jobs/user_browses_job_spec.rb
+++ b/spec/features/projects/jobs/user_browses_job_spec.rb
@@ -31,5 +31,7 @@ describe 'User browses a job', :js do
page.within('.erased') do
expect(page).to have_content('Job has been erased')
end
+
+ expect(build.project.running_or_pending_build_count).to eq(build.project.builds.running_or_pending.count(:all))
end
end