summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-25 14:12:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-25 14:12:18 +0000
commit7349477b1a7ee94c0ce490ab33c4eb96e52aa180 (patch)
tree2a717702aff1a25a811f3f2d0399a733f2286adf /test
parentf8379e406f3a301b384560268e23da92ff6d95be (diff)
downloadredmine-7349477b1a7ee94c0ce490ab33c4eb96e52aa180.tar.gz
redmine-7349477b1a7ee94c0ce490ab33c4eb96e52aa180.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/application_system_test_case.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb
index a2f3cc2d3..55bb6d37e 100644
--- a/test/application_system_test_case.rb
+++ b/test/application_system_test_case.rb
@@ -72,9 +72,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
# Returns the path of the download file
def downloaded_file(filename='*')
Timeout.timeout(5) do
- while downloaded_files(filename).empty?
- sleep 0.2
- end
+ sleep 0.2 while downloaded_files(filename).empty?
end
downloaded_files(filename).first
end