From: Go MAEDA Date: Sat, 2 Nov 2024 04:07:22 +0000 (+0000) Subject: Fix RuboCop offenses in ThemesTest#test_old_theme_compatibility introduced in r23173... X-Git-Tag: 6.0.0~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47c21fa2171a408f053b3344cbe9b17bb7492194;p=redmine.git Fix RuboCop offenses in ThemesTest#test_old_theme_compatibility introduced in r23173 (#39111). git-svn-id: https://svn.redmine.org/redmine/trunk@23176 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/lib/redmine/themes_test.rb b/test/integration/lib/redmine/themes_test.rb index 7dc6b8df0..10cfac660 100644 --- a/test/integration/lib/redmine/themes_test.rb +++ b/test/integration/lib/redmine/themes_test.rb @@ -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