lib/snapshot/runner.rb in snapshot-0.4.6 vs lib/snapshot/runner.rb in snapshot-0.4.7
- old
+ new
@@ -11,9 +11,11 @@
@app_path = Dir.glob("/tmp/snapshot/build/*.app").first
counter = 0
errors = []
+ FileUtils.rm_rf SnapshotConfig.shared_instance.screenshots_path if SnapshotConfig.shared_instance.clear_previous_screenshots
+
SnapshotConfig.shared_instance.devices.each do |device|
SnapshotConfig.shared_instance.blocks[:setup_for_device_change].call(device, udid_for_simulator(device)) # Callback
SnapshotConfig.shared_instance.languages.each do |language|