Corrected with rubocop cop 'Style/StringLiteralsInInterpolation'.
This commit is contained in:
parent
459a45e46c
commit
4b4c7386a2
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class TestCase < Test::Unit::TestCase
|
||||||
def screenshot(params)
|
def screenshot(params)
|
||||||
instance = params[:browser] || @browser
|
instance = params[:browser] || @browser
|
||||||
comment = params[:comment] || ''
|
comment = params[:comment] || ''
|
||||||
filename = "tmp/#{Time.zone.now.strftime("screenshot_%Y_%m_%d__%H_%M_%S")}_#{comment}_#{instance.hash}.png"
|
filename = "tmp/#{Time.zone.now.strftime('screenshot_%Y_%m_%d__%H_%M_%S')}_#{comment}_#{instance.hash}.png"
|
||||||
log('screenshot', { filename: filename })
|
log('screenshot', { filename: filename })
|
||||||
instance.save_screenshot(filename)
|
instance.save_screenshot(filename)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue