Corrected with rubocop cop 'Style/StringLiteralsInInterpolation'.

This commit is contained in:
Thorsten Eckel 2015-05-04 16:23:33 +02:00
parent 459a45e46c
commit 4b4c7386a2

View file

@ -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