diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-01 09:46:43 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-07 21:52:08 +0300 |
commit | 0f9bde41fc5d51ef227021444e2185fb5e5162f1 (patch) | |
tree | 0d1f5959c3464aff053751f99f11bf2319d5ce7a /spec/models/conversational_development_index | |
parent | 28299de189c4c1e9c900d68f98ecfac993cb0aed (diff) |
Store & use ConvDev percentages returned by Version app
Diffstat (limited to 'spec/models/conversational_development_index')
-rw-r--r-- | spec/models/conversational_development_index/metric_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/conversational_development_index/metric_spec.rb b/spec/models/conversational_development_index/metric_spec.rb new file mode 100644 index 00000000000..b3193619503 --- /dev/null +++ b/spec/models/conversational_development_index/metric_spec.rb @@ -0,0 +1,11 @@ +require 'rails_helper' + +describe ConversationalDevelopmentIndex::Metric do + let(:conv_dev_index) { create(:conversational_development_index_metric) } + + describe '#percentage_score' do + it 'returns stored percentage score' do + expect(conv_dev_index.percentage_score('issues')).to eq(13.331) + end + end +end |