]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offenses in ThemesTest#test_old_theme_compatibility introduced in r23173...
authorGo MAEDA <maeda@farend.jp>
Sat, 2 Nov 2024 04:07:22 +0000 (04:07 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 2 Nov 2024 04:07:22 +0000 (04:07 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23176 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/lib/redmine/themes_test.rb

index 7dc6b8df0c55fe4ec727476a0b766432ac33e094..10cfac66040cc7f6cc966fe56014ae8b9cc253b4 100644 (file)
@@ -117,9 +117,9 @@ class ThemesTest < Redmine::IntegrationTest
     Rails.application.assets.load_path.clear_cache
 
     asset = Rails.application.assets.load_path.find('themes/foo_theme/application.css')
-    get "/assets/#{asset.digested_path.to_s}"
+    get "/assets/#{asset.digested_path}"
 
     assert_response :success
-    assert_match %r{url\(\"/assets/application-\w+\.css\"\)}, response.body
+    assert_match %r{url\("/assets/application-\w+\.css"\)}, response.body
   end
 end