1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

code cleanup: rubocop: fix Style/WhileUntilModifier in test/application_system_test_case.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18533 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-09-25 14:12:18 +00:00
parent f8379e406f
commit 7349477b1a
2 changed files with 1 additions and 4 deletions

View File

@ -1679,7 +1679,6 @@ Style/WhileUntilModifier:
- 'lib/redmine/unified_diff.rb' - 'lib/redmine/unified_diff.rb'
- 'lib/redmine/utils.rb' - 'lib/redmine/utils.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
- 'test/application_system_test_case.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinSize, WordRegex. # Configuration parameters: EnforcedStyle, MinSize, WordRegex.

View File

@ -72,9 +72,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
# Returns the path of the download file # Returns the path of the download file
def downloaded_file(filename='*') def downloaded_file(filename='*')
Timeout.timeout(5) do Timeout.timeout(5) do
while downloaded_files(filename).empty? sleep 0.2 while downloaded_files(filename).empty?
sleep 0.2
end
end end
downloaded_files(filename).first downloaded_files(filename).first
end end