summaryrefslogtreecommitdiff
path: root/spec/models/integrations/harbor_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/integrations/harbor_spec.rb')
-rw-r--r--spec/models/integrations/harbor_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/integrations/harbor_spec.rb b/spec/models/integrations/harbor_spec.rb
index 3952495119a..26b43fa3313 100644
--- a/spec/models/integrations/harbor_spec.rb
+++ b/spec/models/integrations/harbor_spec.rb
@@ -27,6 +27,12 @@ RSpec.describe Integrations::Harbor do
it { is_expected.to allow_value('https://demo.goharbor.io').for(:url) }
end
+ describe 'hostname' do
+ it 'returns the host of the integration url' do
+ expect(harbor_integration.hostname).to eq('demo.goharbor.io')
+ end
+ end
+
describe '#fields' do
it 'returns custom fields' do
expect(harbor_integration.fields.pluck(:name)).to eq(%w[url project_name username password])