Skip to content

Commit fd67884

Browse files
committed
Remove unnecessary intermediate variable
H/t @mokagio in #331 (comment)
1 parent 23d43b1 commit fd67884

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ios_download_strings_files_from_glotpress_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ def test_gp_download(filters:, tablename:, expected_gp_params:)
7777

7878
# Assert
7979
expect(stub).to have_been_made.once
80-
file = File.join(tmp_dir, 'Base.lproj', 'Localizable.strings')
81-
expect(File).not_to exist(file)
80+
expect(File).not_to exist(File.join(tmp_dir, 'Base.lproj', 'Localizable.strings'))
8281
expect(error_messages).to eq(['Error downloading locale `unknown-locale` — 404 Not Found'])
8382
end
8483
end

0 commit comments

Comments
 (0)