diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 21:38:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 21:38:24 +0300 |
commit | 983a0bba5d2a042c4a3bbb22432ec192c7501d82 (patch) | |
tree | b153cd387c14ba23bd5a07514c7c01fddf6a78a0 /spec/serializers/analytics_summary_serializer_spec.rb | |
parent | a2bddee2cdb38673df0e004d5b32d9f77797de64 (diff) |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'spec/serializers/analytics_summary_serializer_spec.rb')
-rw-r--r-- | spec/serializers/analytics_summary_serializer_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/serializers/analytics_summary_serializer_spec.rb b/spec/serializers/analytics_summary_serializer_spec.rb index 7950f89bcc7..ed126720a55 100644 --- a/spec/serializers/analytics_summary_serializer_spec.rb +++ b/spec/serializers/analytics_summary_serializer_spec.rb @@ -34,7 +34,10 @@ describe AnalyticsSummarySerializer do end context 'when representing with unit' do - let(:resource) { { title: 'frequency', value: 1.12, unit: 'per day' } } + let(:resource) do + Gitlab::CycleAnalytics::Summary::DeploymentFrequency + .new(deployments: 10, from: 1.day.ago) + end subject { described_class.new.represent(resource, with_unit: true) } |