Fix rubocop warnings

This commit is contained in:
Tom Hughes 2017-10-05 19:18:38 +01:00
parent 4f20850e55
commit 8dae890a76
54 changed files with 409 additions and 393 deletions

View 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

View file

@ -13,7 +13,7 @@ class I18nTest < ActiveSupport::TestCase
if default_value.is_a?(Hash)
variables.push("count")
default_value.each do |_subkey, subvalue|
default_value.each_value do |subvalue|
subvalue.scan(/%\{(\w+)\}/) do
variables.push(Regexp.last_match(1))
end