Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fd1ffcd7
Commit
fd1ffcd7
authored
Nov 27, 2019
by
Aakriti Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename spec factory for ConvDev to DevOps Score
parent
2754fa28
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
spec/factories/dev_ops_score_metrics.rb
spec/factories/dev_ops_score_metrics.rb
+1
-1
spec/features/instance_statistics/conversational_development_index_spec.rb
...tance_statistics/conversational_development_index_spec.rb
+1
-1
spec/models/conversational_development_index/metric_spec.rb
spec/models/conversational_development_index/metric_spec.rb
+1
-1
spec/presenters/conversational_development_index/metric_presenter_spec.rb
...conversational_development_index/metric_presenter_spec.rb
+1
-1
No files found.
spec/factories/
conversational_development_index
_metrics.rb
→
spec/factories/
dev_ops_score
_metrics.rb
View file @
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
}
...
...
spec/features/instance_statistics/conversational_development_index_spec.rb
View file @
fd1ffcd7
...
...
@@ -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
...
...
spec/models/conversational_development_index/metric_spec.rb
View file @
fd1ffcd7
...
...
@@ -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
...
...
spec/presenters/conversational_development_index/metric_presenter_spec.rb
View file @
fd1ffcd7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment