]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Style/WhileUntilModifier in test/application_system_test_c...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 Sep 2019 14:12:18 +0000 (14:12 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 25 Sep 2019 14:12:18 +0000 (14:12 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18533 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/application_system_test_case.rb

index 72acf4841e85c0abae5dbb3a0a7c191872ac9626..5087f0747af5a8c94d138fc2fb8a09a0d07774b5 100644 (file)
@@ -1679,7 +1679,6 @@ Style/WhileUntilModifier:
     - 'lib/redmine/unified_diff.rb'
     - 'lib/redmine/utils.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-    - 'test/application_system_test_case.rb'
 
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
index a2f3cc2d379d3965e3a0d2707f3ce69f5f056671..55bb6d37e2aab61b5d9a7d0ae25ccacb1cfec9c8 100644 (file)
@@ -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