git-svn-id: http://svn.redmine.org/redmine/trunk@18812 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/4.1.0
@@ -532,7 +532,6 @@ Performance/RedundantBlockCall: | |||
- 'app/controllers/application_controller.rb' | |||
- 'lib/redmine/views/builders/structure.rb' | |||
- 'test/functional/repositories_git_controller_test.rb' | |||
- 'test/unit/lib/redmine/views/builders/json_test.rb' | |||
# Cop supports --auto-correct. | |||
Performance/RedundantMatch: |
@@ -110,7 +110,7 @@ class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase | |||
def assert_json_output(expected, &block) | |||
builder = Redmine::Views::Builders::Json.new(ActionDispatch::TestRequest.create, ActionDispatch::TestResponse.create) | |||
block.call(builder) | |||
yield(builder) | |||
assert_equal(expected, ActiveSupport::JSON.decode(builder.output)) | |||
end | |||
end |