diff options
author | Peter Marko <peter.marko@siemens.com> | 2019-02-13 23:38:11 +0100 |
---|---|---|
committer | Peter Marko <peter.marko@siemens.com> | 2019-05-29 16:08:25 +0200 |
commit | 40490cc4922fedbf4512109429cdc2c5aed65ded (patch) | |
tree | bb2be4aa53b223c2031c3accd4b5398ab90b7598 /spec/services | |
parent | 106f449d6938280452c52e1ee86461e5ceed685e (diff) | |
download | gitlab-ce-40490cc4922fedbf4512109429cdc2c5aed65ded.tar.gz |
Add wiki size to project statistics
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/projects/update_statistics_service_spec.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/spec/services/projects/update_statistics_service_spec.rb b/spec/services/projects/update_statistics_service_spec.rb index 5000ea58e5f..8534853fbc7 100644 --- a/spec/services/projects/update_statistics_service_spec.rb +++ b/spec/services/projects/update_statistics_service_spec.rb @@ -17,19 +17,9 @@ describe Projects::UpdateStatisticsService do end end - context 'with an existing project without a repository' do + context 'with an existing project' do let(:project) { create(:project) } - it 'does nothing' do - expect_any_instance_of(ProjectStatistics).not_to receive(:refresh!) - - service.execute - end - end - - context 'with an existing project with a repository' do - let(:project) { create(:project, :repository) } - it 'refreshes the project statistics' do expect_any_instance_of(ProjectStatistics).to receive(:refresh!) .with(only: statistics.map(&:to_sym)) |