diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-03 14:12:51 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-03 14:12:51 +0100 |
commit | e9abacedb01efdb127580dae54a6ffbe8c8c1399 (patch) | |
tree | 6be09731aabd9929f5413ec698941ea1abde223d /spec/models/concerns | |
parent | fe4b5c98201a92ab74b1a0648e2d881feb306ee5 (diff) | |
download | gitlab-ce-e9abacedb01efdb127580dae54a6ffbe8c8c1399.tar.gz |
Refactor encrypted token strategy class
Diffstat (limited to 'spec/models/concerns')
-rw-r--r-- | spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb b/spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb index 556182ee50e..f1e5810fa6a 100644 --- a/spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb +++ b/spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb @@ -35,8 +35,8 @@ describe TokenAuthenticatableStrategies::Encrypted do .to eq 'encrypted resource' end - it 'uses fallback strategy when encrypted token cannot be found' do - allow(subject.send(:fallback_strategy)) + it 'uses insecure strategy when encrypted token cannot be found' do + allow(subject.send(:insecure_strategy)) .to receive(:find_token_authenticatable) .and_return('plaintext resource') |