diff options
Diffstat (limited to 'spec/config/settings_spec.rb')
-rw-r--r-- | spec/config/settings_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/config/settings_spec.rb b/spec/config/settings_spec.rb index f579ecacd3a..c89b5f48dc0 100644 --- a/spec/config/settings_spec.rb +++ b/spec/config/settings_spec.rb @@ -24,7 +24,7 @@ describe Settings do it 'expands db key base secret to 12 bytes' do expect(described_class.attr_encrypted_db_key_base_12) - .to eq(('a' * 10) + ("\0" * 2)) + .to eq(('a' * 10) + ('0' * 2)) end end @@ -53,7 +53,7 @@ describe Settings do end it 'expands db key base secret to 32 bytes' do - expanded_key_base = ('a' * 10) + ("\0" * 22) + expanded_key_base = ('a' * 10) + ('0' * 22) expect(expanded_key_base.bytesize).to eq 32 expect(described_class.attr_encrypted_db_key_base_32) @@ -84,7 +84,7 @@ describe Settings do it 'does not use more than 32 bytes' do db_key_base = described_class.attr_encrypted_db_key_base_32 - expect(db_key_base).to eq '❤❤❤❤❤❤' + ("\0" * 14) + expect(db_key_base).to eq '❤❤❤❤❤❤' + ('0' * 14) expect(db_key_base.bytesize).to eq 32 end end @@ -99,7 +99,7 @@ describe Settings do it 'does not use more than 32 bytes' do db_key_base = described_class.attr_encrypted_db_key_base_32 - expect(db_key_base).to eq(('❤' * 10) + ("\0" * 2)) + expect(db_key_base).to eq(('❤' * 10) + ('0' * 2)) expect(db_key_base.bytesize).to eq 32 end end |