diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 12:09:52 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-22 12:09:52 +0000 |
commit | 3d342396a0ae353dfd9d2387f26e1f5588ea9459 (patch) | |
tree | a36112aa553143cd2bd5b5f5605ad928b600cf7c /test/unit/lib | |
parent | b7b42e9d7673386180a3a350331579ee830b7d83 (diff) | |
download | redmine-3d342396a0ae353dfd9d2387f26e1f5588ea9459.tar.gz redmine-3d342396a0ae353dfd9d2387f26e1f5588ea9459.zip |
code cleanup: rubocop: fix Performance/RedundantBlockCall in test/unit/lib/redmine/views/builders/xml_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18811 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/views/builders/xml_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/views/builders/xml_test.rb b/test/unit/lib/redmine/views/builders/xml_test.rb index ce122ae0f..f332a0758 100644 --- a/test/unit/lib/redmine/views/builders/xml_test.rb +++ b/test/unit/lib/redmine/views/builders/xml_test.rb @@ -63,7 +63,7 @@ class Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase def assert_xml_output(expected, &block) builder = Redmine::Views::Builders::Xml.new(ActionDispatch::TestRequest.create, ActionDispatch::TestResponse.create) - block.call(builder) + yield(builder) assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output) end end |