Reset pushes_since_gc counter before specs run to ensure starting point is 0

This commit is contained in:
Stan Hu 2016-09-18 21:21:43 -07:00
parent d38499b3a7
commit 282c325d02
1 changed files with 4 additions and 0 deletions

View File

@ -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