diff options
author | Go MAEDA <maeda@farend.jp> | 2024-01-27 06:18:38 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-01-27 06:18:38 +0000 |
commit | 005a2578cf5d3bd1b2849a9cfea5f70289e11edd (patch) | |
tree | 320aaa1747bcf989fd986206e5dfa98d3710d683 | |
parent | fca8cf6c0f5a3b07da467075c715a144d54da2ca (diff) | |
download | redmine-005a2578cf5d3bd1b2849a9cfea5f70289e11edd.tar.gz redmine-005a2578cf5d3bd1b2849a9cfea5f70289e11edd.zip |
Fix RuboCop offense Style/ArgumentsForwarding (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22653 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/test_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index e64407945..dcd5f198f 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -252,17 +252,17 @@ class ActiveSupport::TestCase assert !s.include?(expected), (message || "\"#{expected}\" found in \"#{s}\"") end - def assert_select_in(text, *args, &block) + def assert_select_in(text, ...) d = Nokogiri::HTML(CGI.unescapeHTML(String.new(text))).root - assert_select(d, *args, &block) + assert_select(d, ...) end - def assert_select_email(*args, &block) + def assert_select_email(...) email = ActionMailer::Base.deliveries.last assert_not_nil email html_body = email.parts.detect {|part| part.content_type.include?('text/html')}.try(&:body) assert_not_nil html_body - assert_select_in html_body.encoded, *args, &block + assert_select_in(html_body.encoded, ...) end def assert_mail_body_match(expected, mail, message=nil) |