mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix Style/UnlessGuard
This commit is contained in:
committed by
Maikel Linke
parent
12aa4f9970
commit
3432e30465
@@ -43,10 +43,11 @@ RSpec::Matchers.define :match_table do |expected_table|
|
||||
|
||||
elsif row != expected_row
|
||||
row.each_with_index do |cell, j|
|
||||
if cell != expected_row[j]
|
||||
@failure_message = "cell [#{i}, #{j}] has content '#{cell}', expected '#{expected_row[j]}'"
|
||||
break
|
||||
end
|
||||
next unless cell != expected_row[j]
|
||||
|
||||
@failure_message = "cell [#{i}, #{j}] has content '#{cell}', " \
|
||||
"expected '#{expected_row[j]}'"
|
||||
break
|
||||
end
|
||||
break if @failure_message
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user