summaryrefslogtreecommitdiff
path: root/spec/config
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-23 10:03:43 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-23 10:03:43 +0100
commitd1311119faeedaf163cfba7020dbcab33fb9308f (patch)
tree3c136f24a2cfd35dd962d00e864eb1bbe9a38089 /spec/config
parent777b6713bb473d2e09c8340ab9a96373fdbaae50 (diff)
downloadgitlab-ce-d1311119faeedaf163cfba7020dbcab33fb9308f.tar.gz
Fix static analysis in utf8 helper methods
Diffstat (limited to 'spec/config')
-rw-r--r--spec/config/settings_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/config/settings_spec.rb b/spec/config/settings_spec.rb
index fdbd0cb8990..f579ecacd3a 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
@@ -38,7 +38,7 @@ describe Settings do
it 'does not use more than 32 bytes' do
db_key_base = described_class.attr_encrypted_db_key_base_12
- expect(db_key_base).to eq ('❤' * 4)
+ expect(db_key_base).to eq('❤' * 4)
expect(db_key_base.bytesize).to eq 12
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