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
45a5ed6d
Commit
45a5ed6d
authored
Dec 03, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix wording
parent
bec4740f
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
23 additions
and
23 deletions
+23
-23
spec/models/ci/build_metadata_spec.rb
spec/models/ci/build_metadata_spec.rb
+1
-1
spec/models/ci/build_trace_chunk_spec.rb
spec/models/ci/build_trace_chunk_spec.rb
+1
-1
spec/models/ci/job_artifact_spec.rb
spec/models/ci/job_artifact_spec.rb
+1
-1
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+1
-1
spec/models/ci/runner_spec.rb
spec/models/ci/runner_spec.rb
+1
-1
spec/models/ci/stage_spec.rb
spec/models/ci/stage_spec.rb
+1
-1
spec/models/clusters/applications/ingress_spec.rb
spec/models/clusters/applications/ingress_spec.rb
+1
-1
spec/models/clusters/cluster_spec.rb
spec/models/clusters/cluster_spec.rb
+1
-1
spec/models/clusters/platforms/kubernetes_spec.rb
spec/models/clusters/platforms/kubernetes_spec.rb
+1
-1
spec/models/commit_status_spec.rb
spec/models/commit_status_spec.rb
+1
-1
spec/models/deployment_spec.rb
spec/models/deployment_spec.rb
+1
-1
spec/models/gpg_signature_spec.rb
spec/models/gpg_signature_spec.rb
+1
-1
spec/models/internal_id_spec.rb
spec/models/internal_id_spec.rb
+1
-1
spec/models/list_spec.rb
spec/models/list_spec.rb
+1
-1
spec/models/notification_setting_spec.rb
spec/models/notification_setting_spec.rb
+1
-1
spec/models/project_auto_devops_spec.rb
spec/models/project_auto_devops_spec.rb
+1
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
spec/models/prometheus_metric_spec.rb
spec/models/prometheus_metric_spec.rb
+1
-1
spec/models/push_event_payload_spec.rb
spec/models/push_event_payload_spec.rb
+1
-1
spec/models/resource_label_event_spec.rb
spec/models/resource_label_event_spec.rb
+1
-1
spec/models/user_callout_spec.rb
spec/models/user_callout_spec.rb
+1
-1
spec/models/user_spec.rb
spec/models/user_spec.rb
+1
-1
spec/support/active_record_enum.rb
spec/support/active_record_enum.rb
+1
-1
No files found.
spec/models/ci/build_metadata_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
BuildMetadata
do
describe
Ci
::
BuildMetadata
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
set
(
:user
)
{
create
(
:user
)
}
set
(
:user
)
{
create
(
:user
)
}
set
(
:group
)
{
create
(
:group
,
:access_requestable
)
}
set
(
:group
)
{
create
(
:group
,
:access_requestable
)
}
...
...
spec/models/ci/build_trace_chunk_spec.rb
View file @
45a5ed6d
...
@@ -3,7 +3,7 @@ require 'spec_helper'
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
Ci
::
BuildTraceChunk
,
:clean_gitlab_redis_shared_state
do
describe
Ci
::
BuildTraceChunk
,
:clean_gitlab_redis_shared_state
do
include
ExclusiveLeaseHelpers
include
ExclusiveLeaseHelpers
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
set
(
:build
)
{
create
(
:ci_build
,
:running
)
}
set
(
:build
)
{
create
(
:ci_build
,
:running
)
}
let
(
:chunk_index
)
{
0
}
let
(
:chunk_index
)
{
0
}
...
...
spec/models/ci/job_artifact_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
JobArtifact
do
describe
Ci
::
JobArtifact
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let
(
:artifact
)
{
create
(
:ci_job_artifact
,
:archive
)
}
let
(
:artifact
)
{
create
(
:ci_job_artifact
,
:archive
)
}
...
...
spec/models/ci/pipeline_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Pipeline
,
:mailer
do
describe
Ci
::
Pipeline
,
:mailer
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
)
}
set
(
:project
)
{
create
(
:project
)
}
...
...
spec/models/ci/runner_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Runner
do
describe
Ci
::
Runner
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
'validation'
do
describe
'validation'
do
it
{
is_expected
.
to
validate_presence_of
(
:access_level
)
}
it
{
is_expected
.
to
validate_presence_of
(
:access_level
)
}
...
...
spec/models/ci/stage_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Stage
,
:models
do
describe
Ci
::
Stage
,
:models
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let
(
:stage
)
{
create
(
:ci_stage_entity
)
}
let
(
:stage
)
{
create
(
:ci_stage_entity
)
}
...
...
spec/models/clusters/applications/ingress_spec.rb
View file @
45a5ed6d
require
'rails_helper'
require
'rails_helper'
describe
Clusters
::
Applications
::
Ingress
do
describe
Clusters
::
Applications
::
Ingress
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let
(
:ingress
)
{
create
(
:clusters_applications_ingress
)
}
let
(
:ingress
)
{
create
(
:clusters_applications_ingress
)
}
...
...
spec/models/clusters/cluster_spec.rb
View file @
45a5ed6d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Clusters
::
Cluster
do
describe
Clusters
::
Cluster
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
it
{
is_expected
.
to
belong_to
(
:user
)
}
it
{
is_expected
.
to
belong_to
(
:user
)
}
it
{
is_expected
.
to
have_many
(
:cluster_projects
)
}
it
{
is_expected
.
to
have_many
(
:cluster_projects
)
}
...
...
spec/models/clusters/platforms/kubernetes_spec.rb
View file @
45a5ed6d
...
@@ -4,7 +4,7 @@ describe Clusters::Platforms::Kubernetes, :use_clean_rails_memory_store_caching
...
@@ -4,7 +4,7 @@ describe Clusters::Platforms::Kubernetes, :use_clean_rails_memory_store_caching
include
KubernetesHelpers
include
KubernetesHelpers
include
ReactiveCachingHelpers
include
ReactiveCachingHelpers
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
it
{
is_expected
.
to
belong_to
(
:cluster
)
}
it
{
is_expected
.
to
belong_to
(
:cluster
)
}
it
{
is_expected
.
to
be_kind_of
(
Gitlab
::
Kubernetes
)
}
it
{
is_expected
.
to
be_kind_of
(
Gitlab
::
Kubernetes
)
}
...
...
spec/models/commit_status_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
CommitStatus
do
describe
CommitStatus
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
set
(
:project
)
{
create
(
:project
,
:repository
)
}
set
(
:project
)
{
create
(
:project
,
:repository
)
}
...
...
spec/models/deployment_spec.rb
View file @
45a5ed6d
...
@@ -16,7 +16,7 @@ describe Deployment do
...
@@ -16,7 +16,7 @@ describe Deployment do
it
{
is_expected
.
to
validate_presence_of
(
:ref
)
}
it
{
is_expected
.
to
validate_presence_of
(
:ref
)
}
it
{
is_expected
.
to
validate_presence_of
(
:sha
)
}
it
{
is_expected
.
to
validate_presence_of
(
:sha
)
}
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
'#scheduled_actions'
do
describe
'#scheduled_actions'
do
subject
{
deployment
.
scheduled_actions
}
subject
{
deployment
.
scheduled_actions
}
...
...
spec/models/gpg_signature_spec.rb
View file @
45a5ed6d
require
'rails_helper'
require
'rails_helper'
RSpec
.
describe
GpgSignature
do
RSpec
.
describe
GpgSignature
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let
(
:commit_sha
)
{
'0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
}
let
(
:commit_sha
)
{
'0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33'
}
let!
(
:project
)
{
create
(
:project
,
:repository
,
path:
'sample-project'
)
}
let!
(
:project
)
{
create
(
:project
,
:repository
,
path:
'sample-project'
)
}
...
...
spec/models/internal_id_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
InternalId
do
describe
InternalId
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:usage
)
{
:issues
}
let
(
:usage
)
{
:issues
}
...
...
spec/models/list_spec.rb
View file @
45a5ed6d
require
'rails_helper'
require
'rails_helper'
describe
List
do
describe
List
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
'relationships'
do
describe
'relationships'
do
it
{
is_expected
.
to
belong_to
(
:board
)
}
it
{
is_expected
.
to
belong_to
(
:board
)
}
...
...
spec/models/notification_setting_spec.rb
View file @
45a5ed6d
require
'rails_helper'
require
'rails_helper'
RSpec
.
describe
NotificationSetting
do
RSpec
.
describe
NotificationSetting
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
"Associations"
do
describe
"Associations"
do
it
{
is_expected
.
to
belong_to
(
:user
)
}
it
{
is_expected
.
to
belong_to
(
:user
)
}
...
...
spec/models/project_auto_devops_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
ProjectAutoDevops
do
describe
ProjectAutoDevops
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
set
(
:project
)
{
build
(
:project
)
}
set
(
:project
)
{
build
(
:project
)
}
...
...
spec/models/project_spec.rb
View file @
45a5ed6d
...
@@ -4,7 +4,7 @@ describe Project do
...
@@ -4,7 +4,7 @@ describe Project do
include
ProjectForksHelper
include
ProjectForksHelper
include
GitHelpers
include
GitHelpers
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
'associations'
do
describe
'associations'
do
it
{
is_expected
.
to
belong_to
(
:group
)
}
it
{
is_expected
.
to
belong_to
(
:group
)
}
...
...
spec/models/prometheus_metric_spec.rb
View file @
45a5ed6d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
describe
PrometheusMetric
do
describe
PrometheusMetric
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
subject
{
build
(
:prometheus_metric
)
}
subject
{
build
(
:prometheus_metric
)
}
let
(
:other_project
)
{
build
(
:project
)
}
let
(
:other_project
)
{
build
(
:project
)
}
...
...
spec/models/push_event_payload_spec.rb
View file @
45a5ed6d
require
'spec_helper'
require
'spec_helper'
describe
PushEventPayload
do
describe
PushEventPayload
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
'saving payloads'
do
describe
'saving payloads'
do
it
'does not allow commit messages longer than 70 characters'
do
it
'does not allow commit messages longer than 70 characters'
do
...
...
spec/models/resource_label_event_spec.rb
View file @
45a5ed6d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'rails_helper'
require
'rails_helper'
RSpec
.
describe
ResourceLabelEvent
,
type: :model
do
RSpec
.
describe
ResourceLabelEvent
,
type: :model
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
subject
{
build
(
:resource_label_event
,
issue:
issue
)
}
subject
{
build
(
:resource_label_event
,
issue:
issue
)
}
let
(
:issue
)
{
create
(
:issue
)
}
let
(
:issue
)
{
create
(
:issue
)
}
...
...
spec/models/user_callout_spec.rb
View file @
45a5ed6d
require
'rails_helper'
require
'rails_helper'
describe
UserCallout
do
describe
UserCallout
do
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
let!
(
:callout
)
{
create
(
:user_callout
)
}
let!
(
:callout
)
{
create
(
:user_callout
)
}
...
...
spec/models/user_spec.rb
View file @
45a5ed6d
...
@@ -4,7 +4,7 @@ describe User do
...
@@ -4,7 +4,7 @@ describe User do
include
ProjectForksHelper
include
ProjectForksHelper
include
TermsHelper
include
TermsHelper
it_behaves_like
'
U
nique enum values'
it_behaves_like
'
having u
nique enum values'
describe
'modules'
do
describe
'modules'
do
subject
{
described_class
}
subject
{
described_class
}
...
...
spec/support/active_record_enum.rb
View file @
45a5ed6d
# frozen_string_literal: true
# frozen_string_literal: true
shared_examples
'
U
nique enum values'
do
shared_examples
'
having u
nique enum values'
do
described_class
.
defined_enums
.
each
do
|
name
,
enum
|
described_class
.
defined_enums
.
each
do
|
name
,
enum
|
it
"has unique values in
#{
name
.
inspect
}
"
do
it
"has unique values in
#{
name
.
inspect
}
"
do
duplicated
=
enum
.
group_by
(
&
:last
).
select
{
|
key
,
value
|
value
.
size
>
1
}
duplicated
=
enum
.
group_by
(
&
:last
).
select
{
|
key
,
value
|
value
.
size
>
1
}
...
...
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