summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-18 16:00:57 +0000
committerRémy Coutable <remy@rymai.me>2017-01-18 16:00:57 +0000
commit7c7b20417fa45c54d3fce9aaac2042a8964325d9 (patch)
tree7f614efb5826c9b11cbdb05574bc04e082facf42 /spec
parent52e652cbe727f0afc48c74330e6bef72712effad (diff)
parent4bb3675b7d48e5215b63b3e94063188b719c59ea (diff)
downloadgitlab-ce-7c7b20417fa45c54d3fce9aaac2042a8964325d9.tar.gz
Merge branch '26773-fix-project-statistics-repository-size' into 'master'
Resolve "Wrong file size on repository page" Closes #26773 See merge request !8616
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_statistics_spec.rb2
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