diff options
author | Nick Thomas <nick@gitlab.com> | 2018-09-14 18:21:28 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-10-01 15:34:16 +0100 |
commit | 466371a06c6d4d5b206b6fc2b09d7a44d80e8679 (patch) | |
tree | 9a1e0398817cd1dae383105edff54652ffc9a846 /spec/models | |
parent | fb48eaba4600c1e0e36afae6ec7638d52265a62c (diff) | |
download | gitlab-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.rb | 6 |
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' } |