Skip to content

Commit ad22121

Browse files
mokagiocodex
andcommitted
Tighten inter-token merge specs
Assert parsed keys so the regression captures the merge contract without depending on raw output formatting. --- Generated with the help of Codex, https://openai.com/codex Co-Authored-By: Codex GPT-5 <noreply@openai.com>
1 parent 1a48ec8 commit ad22121

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

spec/ios_l10n_helper_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,8 @@ def file_encoding(path)
138138
File.write(input_file, content)
139139
output_file = File.join(tmp_dir, 'output.strings')
140140
described_class.merge_strings(paths: { input_file => 'pfx.' }, output_path: output_file)
141-
merged = File.read(output_file)
142-
expect(merged).to include('"pfx.CFBundleName"')
143-
expect(merged).to include('"pfx.AppName"')
144-
expect(merged).to include('"pfx.DisplayName"')
141+
merged_keys = described_class.read_strings_file_as_hash(path: output_file).keys
142+
expect(merged_keys).to contain_exactly('pfx.CFBundleName', 'pfx.AppName', 'pfx.DisplayName')
145143
end
146144
end
147145

0 commit comments

Comments
 (0)