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

View file

@ -4,6 +4,10 @@ describe Projects::HousekeepingService do
subject { Projects::HousekeepingService.new(project) } subject { Projects::HousekeepingService.new(project) }
let(:project) { create :project } let(:project) { create :project }
before do
project.reset_pushes_since_gc
end
after do after do
project.reset_pushes_since_gc project.reset_pushes_since_gc
end end