Rebuild rubocop TODOs after auto-correcting
This commit is contained in:
parent
31c50255e9
commit
84dbb52d11
580 changed files with 3689 additions and 3133 deletions
|
|
@ -1,12 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Flash
|
||||
def flash
|
||||
results = all(:css, 'div#flash p')
|
||||
if results.empty?
|
||||
return 'none'
|
||||
end
|
||||
return 'none' if results.empty?
|
||||
if results.count > 1
|
||||
texts = results.map { |r| r.text }
|
||||
fail "One flash expected, but we had #{texts.inspect}"
|
||||
texts = results.map(&:text)
|
||||
raise "One flash expected, but we had #{texts.inspect}"
|
||||
end
|
||||
results.first.text
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue