Skip to content

Commit a04c459

Browse files
AliSoftwaremokagio
andauthored
Apply suggestions from code review
Co-authored-by: Gio Lodi <giovanni.lodi42@gmail.com>
1 parent a3d8afb commit a04c459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/ios_extract_keys_from_strings_files_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
describe 'extract the right keys from `Localizable.strings` to all locales' do
88
def assert_output_files_match(expectations_map)
99
expectations_map.each do |output_file, expected_file|
10-
expect(File).to exist(output_file), "expect `#{output_file}` to exist"
11-
expect(File.read(output_file)).to eq(File.read(File.join(test_data_dir, expected_file))), "expect content of `#{output_file}` to match `#{expected_file}`"
10+
expect(File).to exist(output_file), "expected `#{output_file}` to exist"
11+
expect(File.read(output_file)).to eq(File.read(File.join(test_data_dir, expected_file))), "expected content of `#{output_file}` to match `#{expected_file}`"
1212
end
1313
end
1414

@@ -179,7 +179,7 @@ def assert_output_files_match(expectations_map)
179179
end
180180

181181
describe 'error handling during processing' do
182-
it 'errors if fails to read a source file' do
182+
it 'errors when failing to read a source file' do
183183
in_tmp_dir do |tmp_dir|
184184
lproj_source_dir = File.join(tmp_dir, 'Resources')
185185
FileUtils.cp_r(File.join(test_data_dir, 'Resources', '.'), lproj_source_dir)

0 commit comments

Comments
 (0)