diff options
author | Stan Hu <stanhu@gmail.com> | 2016-09-18 21:21:43 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-09-18 21:21:43 -0700 |
commit | 282c325d024e115b52c2ebfe394096b7e4cc68ed (patch) | |
tree | c036a359ff2b54163efb48dca0fe4ec93e217085 /spec/services | |
parent | d38499b3a785ea9d15cb3f108764d20016ea8ea7 (diff) | |
download | gitlab-ce-282c325d024e115b52c2ebfe394096b7e4cc68ed.tar.gz |
Reset pushes_since_gc counter before specs run to ensure starting point is 0sh-reset-pushes-since-gc-before
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/projects/housekeeping_service_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/projects/housekeeping_service_spec.rb b/spec/services/projects/housekeeping_service_spec.rb index c6160f4fa57..cf90b33dfb4 100644 --- a/spec/services/projects/housekeeping_service_spec.rb +++ b/spec/services/projects/housekeeping_service_spec.rb @@ -4,6 +4,10 @@ describe Projects::HousekeepingService do subject { Projects::HousekeepingService.new(project) } let(:project) { create :project } + before do + project.reset_pushes_since_gc + end + after do project.reset_pushes_since_gc end |