]> git.openstreetmap.org Git - rails.git/blobdiff - test/lib/bounding_box_test.rb
Refactor factories to use FactoryBot
[rails.git] / test / lib / bounding_box_test.rb
index 53095307d244f8c040f620b1831034e1d816aae2..3e0c5490b330a398e749714b3c77cd237d1c55b7 100644 (file)
@@ -306,7 +306,7 @@ class BoundingBoxTest < ActiveSupport::TestCase
 
   def check_expand(bbox, array_string, margin = 0, result = nil)
     array = array_string.split(",").collect(&:to_f)
-    result = array unless result
+    result ||= array
     bbox.expand!(BoundingBox.new(array[0], array[1], array[2], array[3]), margin)
     check_bbox(bbox, result)
   end