summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-21 00:46:15 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-21 00:46:15 +0000
commit93645a279e68b5f23d13c340d96ede3f65aff635 (patch)
tree99c47c51197d9b285fe4b05d073fd55208df54e5 /test/unit/lib
parentc069ea3a2440f4cb0641abd4e3ddb6be5bd6bdb2 (diff)
downloadredmine-93645a279e68b5f23d13c340d96ede3f65aff635.tar.gz
redmine-93645a279e68b5f23d13c340d96ede3f65aff635.zip
Use anonymous block forwarding introduced in Ruby 3.1 (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/views/builders/json_test.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/xml_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/views/builders/json_test.rb b/test/unit/lib/redmine/views/builders/json_test.rb
index 7622a4c19..afd772782 100644
--- a/test/unit/lib/redmine/views/builders/json_test.rb
+++ b/test/unit/lib/redmine/views/builders/json_test.rb
@@ -124,7 +124,7 @@ class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase
end
end
- def assert_json_output(expected, &block)
+ def assert_json_output(expected, &)
builder = Redmine::Views::Builders::Json.new(ActionDispatch::TestRequest.create, ActionDispatch::TestResponse.create)
yield(builder)
assert_equal(expected, ActiveSupport::JSON.decode(builder.output))
diff --git a/test/unit/lib/redmine/views/builders/xml_test.rb b/test/unit/lib/redmine/views/builders/xml_test.rb
index 42ff882d7..22aee3635 100644
--- a/test/unit/lib/redmine/views/builders/xml_test.rb
+++ b/test/unit/lib/redmine/views/builders/xml_test.rb
@@ -60,7 +60,7 @@ class Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase
end
end
- def assert_xml_output(expected, &block)
+ def assert_xml_output(expected, &)
builder = Redmine::Views::Builders::Xml.new(ActionDispatch::TestRequest.create, ActionDispatch::TestResponse.create)
yield(builder)
assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output)