mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user