Purge screenshots before test suite
This commit is contained in:
parent
59a14043c8
commit
266794cfe6
@ -17,7 +17,8 @@ class BodyTrackingSystemTestCase < ApplicationSystemTestCase
|
||||
}
|
||||
|
||||
Capybara.configure do |config|
|
||||
config.save_path = './tmp/screenshots/'
|
||||
config.save_path = Rails.root.join('tmp', 'screenshots')
|
||||
FileUtils.rm Dir.glob(File.join(config.save_path, '*.png'))
|
||||
end
|
||||
|
||||
fixtures :projects
|
||||
|
Reference in New Issue
Block a user