Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/integration_spec.rb')
-rw-r--r--spec/models/integration_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/integration_spec.rb b/spec/models/integration_spec.rb
index 0b41b46ae3d..67e12092e1a 100644
--- a/spec/models/integration_spec.rb
+++ b/spec/models/integration_spec.rb
@@ -1041,9 +1041,9 @@ RSpec.describe Integration, feature_category: :integrations do
it 'returns all fields with type `password`' do
allow(subject).to receive(:fields).and_return(
[
- { name: 'password', type: :password },
- { name: 'secret', type: :password },
- { name: 'public', type: :text }
+ Integrations::Field.new(name: 'password', integration_class: subject.class, type: :password),
+ Integrations::Field.new(name: 'secret', integration_class: subject.class, type: :password),
+ Integrations::Field.new(name: 'public', integration_class: subject.class, type: :text)
])
expect(subject.secret_fields).to match_array(%w[password secret])