Fix rubocop warnings
This commit is contained in:
parent
4f20850e55
commit
8dae890a76
54 changed files with 409 additions and 393 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue