diff options
Diffstat (limited to 'spec/helpers/integrations_helper_spec.rb')
-rw-r--r-- | spec/helpers/integrations_helper_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/helpers/integrations_helper_spec.rb b/spec/helpers/integrations_helper_spec.rb index 6c5a489e664..7c626743f3a 100644 --- a/spec/helpers/integrations_helper_spec.rb +++ b/spec/helpers/integrations_helper_spec.rb @@ -172,6 +172,26 @@ RSpec.describe IntegrationsHelper, feature_category: :integrations do it { is_expected.to include(*fields) } end + describe '#serialize_integration' do + subject { helper.send(:serialize_integration, integration) } + + let(:integration) { build(:jenkins_integration) } + + it 'serializes the integration' do + is_expected.to match(a_hash_including( + id: nil, + active: true, + configured: false, + title: 'Jenkins', + description: _('Run CI/CD pipelines with Jenkins.'), + updated_at: nil, + edit_path: '/admin/application_settings/integrations/jenkins/edit', + name: 'jenkins', + icon: nil + )) + end + end + describe '#scoped_reset_integration_path' do let(:integration) { build_stubbed(:jira_integration) } let(:group) { nil } |