summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-09-14 18:21:28 +0100
committerNick Thomas <nick@gitlab.com>2018-10-01 15:34:16 +0100
commit466371a06c6d4d5b206b6fc2b09d7a44d80e8679 (patch)
tree9a1e0398817cd1dae383105edff54652ffc9a846 /spec/models
parentfb48eaba4600c1e0e36afae6ec7638d52265a62c (diff)
downloadgitlab-ce-466371a06c6d4d5b206b6fc2b09d7a44d80e8679.tar.gz
Migrate sensitive web hook data in the background
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/hooks/web_hook_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/hooks/web_hook_spec.rb b/spec/models/hooks/web_hook_spec.rb
index a4181631f01..a308ac6e33a 100644
--- a/spec/models/hooks/web_hook_spec.rb
+++ b/spec/models/hooks/web_hook_spec.rb
@@ -57,6 +57,12 @@ describe WebHook do
end
end
+ describe 'encrypted attributes' do
+ subject { described_class.encrypted_attributes.keys }
+
+ it { is_expected.to contain_exactly(:token, :url) }
+ end
+
describe 'execute' do
let(:data) { { key: 'value' } }
let(:hook_name) { 'project hook' }