diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-08-01 07:07:31 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-08-01 07:07:31 +0000 |
commit | e53e4d45296c32e699b98cefdcb4bcde5e1a44bf (patch) | |
tree | df8346a2d7e6adad73abc9d05403870057a3b968 /spec | |
parent | 9b433c370688ddb4be261915da6aeb8327429966 (diff) | |
parent | 188692ad2842c2e69c7ffeee0f04b19ae5455b9b (diff) | |
download | gitlab-ce-e53e4d45296c32e699b98cefdcb4bcde5e1a44bf.tar.gz |
Merge branch 'floating-avarage-commit-numbers' into 'master'
Show one digit after dot in commit_per_day value in charts page.
Closes #26512
See merge request gitlab-org/gitlab-ce!20896
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/graphs/commits_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/graphs/commits_spec.rb b/spec/lib/gitlab/graphs/commits_spec.rb index b2084f56640..530d4a981bf 100644 --- a/spec/lib/gitlab/graphs/commits_spec.rb +++ b/spec/lib/gitlab/graphs/commits_spec.rb @@ -29,7 +29,7 @@ describe Gitlab::Graphs::Commits do context 'with commits from yesterday and today' do subject { described_class.new([commit2, commit1_yesterday]) } describe '#commit_per_day' do - it { expect(subject.commit_per_day).to eq 1 } + it { expect(subject.commit_per_day).to eq 1.0 } end describe '#duration' do |