summaryrefslogtreecommitdiff
path: root/spec/presenters
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-08-01 08:46:43 +0200
committerJarka Kadlecova <jarka@gitlab.com>2017-08-07 20:52:08 +0200
commit0f9bde41fc5d51ef227021444e2185fb5e5162f1 (patch)
tree0d1f5959c3464aff053751f99f11bf2319d5ce7a /spec/presenters
parent28299de189c4c1e9c900d68f98ecfac993cb0aed (diff)
downloadgitlab-ce-0f9bde41fc5d51ef227021444e2185fb5e5162f1.tar.gz
Store & use ConvDev percentages returned by Version app35761-convdev-perc
Diffstat (limited to 'spec/presenters')
-rw-r--r--spec/presenters/conversational_development_index/metric_presenter_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/presenters/conversational_development_index/metric_presenter_spec.rb b/spec/presenters/conversational_development_index/metric_presenter_spec.rb
index 1e015c71f5b..81eb05a9a6b 100644
--- a/spec/presenters/conversational_development_index/metric_presenter_spec.rb
+++ b/spec/presenters/conversational_development_index/metric_presenter_spec.rb
@@ -8,9 +8,9 @@ describe ConversationalDevelopmentIndex::MetricPresenter do
it 'includes instance score, leader score and percentage score' do
issues_card = subject.cards.first
- expect(issues_card.instance_score).to eq 1.234
- expect(issues_card.leader_score).to eq 9.256
- expect(issues_card.percentage_score).to be_within(0.1).of(13.3)
+ expect(issues_card.instance_score).to eq(1.234)
+ expect(issues_card.leader_score).to eq(9.256)
+ expect(issues_card.percentage_score).to eq(13.331)
end
end