diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-07 20:25:32 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-07 20:25:32 +0000 |
commit | 5f30350c5b2482f72e221cce33ebd66919fcd6b4 (patch) | |
tree | a1a091823dc47104961591fcc1ff5185e4ff7092 /spec/models | |
parent | bd99458a6d35bbc637d307d97a8c0159fabcb3c3 (diff) | |
parent | 0f9bde41fc5d51ef227021444e2185fb5e5162f1 (diff) | |
download | gitlab-ce-5f30350c5b2482f72e221cce33ebd66919fcd6b4.tar.gz |
Merge branch '35761-convdev-perc' into 'master'
Store & use ConvDev percentages returned by Version app
Closes #35761
See merge request !13217
Diffstat (limited to 'spec/models')
-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 |