Commit 6f674e12 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'ag-rename-convdev-index-to-devops-score' into 'master'

[Spec factories] Rename ConvDev Index to DevOps Score

See merge request gitlab-org/gitlab!20633
parents e4fe33e8 fd1ffcd7
# frozen_string_literal: true
FactoryBot.define do
factory :conversational_development_index_metric, class: ConversationalDevelopmentIndex::Metric do
factory :dev_ops_score_metric, class: ConversationalDevelopmentIndex::Metric do
leader_issues { 9.256 }
instance_issues { 1.234 }
percentage_issues { 13.331 }
......
......@@ -48,7 +48,7 @@ describe 'Conversational Development Index' do
context 'when there is data to display' do
it 'shows numbers for each metric' do
stub_application_setting(usage_ping_enabled: true)
create(:conversational_development_index_metric)
create(:dev_ops_score_metric)
visit instance_statistics_conversational_development_index_index_path
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
describe ConversationalDevelopmentIndex::Metric do
let(:conv_dev_index) { create(:conversational_development_index_metric) }
let(:conv_dev_index) { create(:dev_ops_score_metric) }
describe '#percentage_score' do
it 'returns stored percentage score' do
......
......@@ -5,7 +5,7 @@ require 'spec_helper'
describe ConversationalDevelopmentIndex::MetricPresenter do
subject { described_class.new(metric) }
let(:metric) { build(:conversational_development_index_metric) }
let(:metric) { build(:dev_ops_score_metric) }
describe '#cards' do
it 'includes instance score, leader score and percentage score' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment