]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/amf_controller_test.rb
Fix new rubocop warnings
[rails.git] / test / controllers / api / amf_controller_test.rb
index 5b0d36f7eb2aec7d82cc57805e8a9b4dafd9b6fd..c62c750b68f7c8e55fa37f80f7af197773f54cfd 100644 (file)
@@ -1390,8 +1390,8 @@ module Api
     def amf_content(target, ref, data)
       a, b = 1.divmod(256)
       c = StringIO.new
-      c.write 0.chr + 0.chr   # version 0
-      c.write 0.chr + 0.chr   # n headers
+      c.write 0.chr * 2       # version 0
+      c.write 0.chr * 2       # n headers
       c.write a.chr + b.chr   # n bodies
       c.write AMF.encodestring(target)
       c.write AMF.encodestring(ref)