Skip to content

Commit 29c89f4

Browse files
committed
Address ios_strings_file_validation_helper_spec.rb RuboCop violations
1 parent 3cda14f commit 29c89f4

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

spec/ios_strings_file_validation_helper_spec.rb

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@
1515
it 'returns them in an array' do
1616
input = File.join(test_data_dir, 'file-with-duplicated-keys.strings')
1717

18-
expect(described_class.find_duplicated_keys(file: input)).to eq({
19-
'dup1' => [30, 31],
20-
'dup2' => [33, 35],
21-
'dup3' => [36, 39],
22-
'dup4' => [41, 42],
23-
'\U0025 key' => [49, 50],
24-
'\U0026 key' => [52, 54],
25-
'key with \"%@\" character' => [60, 61],
26-
'key with \"%@\" but diff translations' => [63, 64],
27-
'key with multiple \"%@\" escapes \":)\" in it' => [66, 68],
28-
'Login to a \"%@\" account' => [67, 69],
29-
'key with trailing spaces ' => [76, 77],
30-
'key with \"%@\" and = character' => [71, 72],
31-
'key with \"%@\" character and equal in translation' => [73, 74],
32-
'key repeated more than twice' => [79, 80, 81],
33-
})
18+
expect(described_class.find_duplicated_keys(file: input)).to eq(
19+
{
20+
'dup1' => [30, 31],
21+
'dup2' => [33, 35],
22+
'dup3' => [36, 39],
23+
'dup4' => [41, 42],
24+
'\U0025 key' => [49, 50],
25+
'\U0026 key' => [52, 54],
26+
'key with \"%@\" character' => [60, 61],
27+
'key with \"%@\" but diff translations' => [63, 64],
28+
'key with multiple \"%@\" escapes \":)\" in it' => [66, 68],
29+
'Login to a \"%@\" account' => [67, 69],
30+
'key with trailing spaces ' => [76, 77],
31+
'key with \"%@\" and = character' => [71, 72],
32+
'key with \"%@\" character and equal in translation' => [73, 74],
33+
'key repeated more than twice' => [79, 80, 81]
34+
}
35+
)
3436
end
3537
end
3638

0 commit comments

Comments
 (0)