diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-17 16:29:31 -0200 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-01-17 21:50:09 -0200 |
commit | 4bb3675b7d48e5215b63b3e94063188b719c59ea (patch) | |
tree | e7b2387008caf39cd3f75e36921dd31e34d6dfc9 /spec | |
parent | 65046d9a5e84defb1bd0a0508e085a8cc023bc6f (diff) | |
download | gitlab-ce-4bb3675b7d48e5215b63b3e94063188b719c59ea.tar.gz |
Fix Project#update_repository_size to convert MB to Bytes properly26773-fix-project-statistics-repository-size
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/project_statistics_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_statistics_spec.rb b/spec/models/project_statistics_spec.rb index 77403cc9eb0..ff29f6f66ba 100644 --- a/spec/models/project_statistics_spec.rb +++ b/spec/models/project_statistics_spec.rb @@ -107,7 +107,7 @@ describe ProjectStatistics, models: true do describe '#update_repository_size' do before do - allow(project.repository).to receive(:size).and_return(12.megabytes) + allow(project.repository).to receive(:size).and_return(12) statistics.update_repository_size end |