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

metric_spec.rb « dev_ops_report « models « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 191692f43a48a165d57532ddd4e3f3e066b3a252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe DevOpsReport::Metric do
  let(:conv_dev_index) { create(:dev_ops_report_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