Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMałgorzata Ksionek <meksionek@gmail.com>2019-05-27 13:44:02 +0300
committerMałgorzata Ksionek <meksionek@gmail.com>2019-05-27 13:44:02 +0300
commit13f37264349d1c9a016335ba37c6f5bd2d5910df (patch)
tree325e4c092eae2f50430ac79aa1f446a8d01d7dc3 /spec/serializers
parentee92acccb47c073992f46f9b8f9132a8ef9a92a6 (diff)
Rephrase specs description for cycle analytics
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/analytics_stage_serializer_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/serializers/analytics_stage_serializer_spec.rb b/spec/serializers/analytics_stage_serializer_spec.rb
index 907d1b35e74..5b05c2f2ef3 100644
--- a/spec/serializers/analytics_stage_serializer_spec.rb
+++ b/spec/serializers/analytics_stage_serializer_spec.rb
@@ -27,7 +27,7 @@ describe AnalyticsStageSerializer do
allow_any_instance_of(Gitlab::CycleAnalytics::BaseStage).to receive(:median).and_return(0)
end
- it 'value is nil' do
+ it 'sets the value to nil' do
expect(subject.fetch(:value)).to be_nil
end
end
@@ -37,18 +37,18 @@ describe AnalyticsStageSerializer do
allow_any_instance_of(Gitlab::CycleAnalytics::BaseStage).to receive(:median).and_return(0.12)
end
- it 'value is equal to median' do
+ it 'sets the value to equal to median' do
expect(subject.fetch(:value)).to eq('less than a minute')
end
end
context 'when median is above 1' do
before do
- allow_any_instance_of(Gitlab::CycleAnalytics::BaseStage).to receive(:median).and_return(1.12)
+ allow_any_instance_of(Gitlab::CycleAnalytics::BaseStage).to receive(:median).and_return(60.12)
end
- it 'value is equal to median' do
- expect(subject.fetch(:value)).to eq('less than a minute')
+ it 'sets the value to equal to median' do
+ expect(subject.fetch(:value)).to eq('1 minute')
end
end
end