summaryrefslogtreecommitdiff
path: root/spec/serializers/service_field_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/service_field_entity_spec.rb')
-rw-r--r--spec/serializers/service_field_entity_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/serializers/service_field_entity_spec.rb b/spec/serializers/service_field_entity_spec.rb
index a06fdf95159..3a574c522b0 100644
--- a/spec/serializers/service_field_entity_spec.rb
+++ b/spec/serializers/service_field_entity_spec.rb
@@ -20,6 +20,7 @@ RSpec.describe ServiceFieldEntity do
it 'exposes correct attributes' do
expected_hash = {
+ section: 'connection',
type: 'text',
name: 'username',
title: 'Username or Email',
@@ -40,6 +41,7 @@ RSpec.describe ServiceFieldEntity do
it 'exposes correct attributes but hides password' do
expected_hash = {
+ section: 'connection',
type: 'password',
name: 'password',
title: 'Enter new password or API token',
@@ -64,6 +66,7 @@ RSpec.describe ServiceFieldEntity do
it 'exposes correct attributes and casts value to Boolean' do
expected_hash = {
+ section: nil,
type: 'checkbox',
name: 'send_from_committer_email',
title: 'Send from committer',
@@ -84,6 +87,7 @@ RSpec.describe ServiceFieldEntity do
it 'exposes correct attributes' do
expected_hash = {
+ section: nil,
type: 'select',
name: 'branches_to_be_notified',
title: 'Branches for which notifications are to be sent',