Commit 36c117e2 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ce-to-ee-2017-05-10-template-spec-fix' into 'ce-to-ee-2017-05-10'

attempt to fix spec

See merge request !1904
parents f1826bcf ea0a31dc
...@@ -76,9 +76,9 @@ describe Projects::PropagateServiceTemplate, services: true do ...@@ -76,9 +76,9 @@ describe Projects::PropagateServiceTemplate, services: true do
stub_const 'Projects::PropagateServiceTemplate::BATCH_SIZE', 3 stub_const 'Projects::PropagateServiceTemplate::BATCH_SIZE', 3
project_total.times { create(:empty_project) } project_total.times { create(:empty_project) }
expect { described_class.propagate(service_template) }. expect { described_class.propagate(service_template) }.
to change { Service.count }.by(project_total + 1) to change { Service.all.reload.count }.by(project_total + 1)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment