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
2ccdb0eb
Commit
2ccdb0eb
authored
Jun 15, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spec backwards compatibility
parent
a2982584
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
app/models/integration.rb
app/models/integration.rb
+1
-1
spec/serializers/service_event_entity_spec.rb
spec/serializers/service_event_entity_spec.rb
+1
-1
spec/serializers/service_field_entity_spec.rb
spec/serializers/service_field_entity_spec.rb
+1
-0
No files found.
app/models/integration.rb
View file @
2ccdb0eb
...
...
@@ -44,7 +44,7 @@ class Integration < ApplicationRecord
bamboo bugzilla buildkite
campfire confluence custom_issue_tracker
datadog discord drone_ci
emails_on_push ewm emails_on_push
emails_on_push ewm emails_on_push
external_wiki
]
.
to_set
.
freeze
def
self
.
renamed?
(
name
)
...
...
spec/serializers/service_event_entity_spec.rb
View file @
2ccdb0eb
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec
.
describe
ServiceEventEntity
do
let
(
:request
)
{
double
(
'request'
)
}
subject
{
described_class
.
new
(
event
,
request:
request
,
service:
service
).
as_json
}
subject
{
described_class
.
new
(
event
,
request:
request
,
service:
integration
).
as_json
}
before
do
allow
(
request
).
to
receive
(
:service
).
and_return
(
integration
)
...
...
spec/serializers/service_field_entity_spec.rb
View file @
2ccdb0eb
...
...
@@ -56,6 +56,7 @@ RSpec.describe ServiceFieldEntity do
context
'EmailsOnPush Service'
do
let
(
:integration
)
{
create
(
:emails_on_push_integration
,
send_from_committer_email:
'1'
)
}
let
(
:service
)
{
integration
}
context
'field with type checkbox'
do
let
(
:field
)
{
integration
.
global_fields
.
find
{
|
field
|
field
[
:name
]
==
'send_from_committer_email'
}
}
...
...
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