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
2d33bd9d
Commit
2d33bd9d
authored
Jul 14, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update spec to cover casting of value to bool
parent
1cc367e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/serializers/service_field_entity_spec.rb
spec/serializers/service_field_entity_spec.rb
+2
-2
No files found.
spec/serializers/service_field_entity_spec.rb
View file @
2d33bd9d
...
@@ -55,12 +55,12 @@ RSpec.describe ServiceFieldEntity do
...
@@ -55,12 +55,12 @@ RSpec.describe ServiceFieldEntity do
end
end
context
'EmailsOnPush Service'
do
context
'EmailsOnPush Service'
do
let
(
:service
)
{
create
(
:emails_on_push_service
)
}
let
(
:service
)
{
create
(
:emails_on_push_service
,
send_from_committer_email:
'1'
)
}
context
'field with type checkbox'
do
context
'field with type checkbox'
do
let
(
:field
)
{
service
.
global_fields
.
find
{
|
field
|
field
[
:name
]
==
'send_from_committer_email'
}
}
let
(
:field
)
{
service
.
global_fields
.
find
{
|
field
|
field
[
:name
]
==
'send_from_committer_email'
}
}
it
'exposes correct attributes'
do
it
'exposes correct attributes
and casts value to Boolean
'
do
expected_hash
=
{
expected_hash
=
{
type:
'checkbox'
,
type:
'checkbox'
,
name:
'send_from_committer_email'
,
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