lib/calabash-android/operations.rb in calabash-android-0.7.3 vs lib/calabash-android/operations.rb in calabash-android-0.7.4.pre1

- old
+ new

@@ -540,10 +540,10 @@ end File.open(path, 'wb') do |f| f.write res end else - screenshot_cmd = "java -jar #{File.join(File.dirname(__FILE__), 'lib', 'screenshotTaker.jar')} #{serial} \"#{path}\"" + screenshot_cmd = "java -jar \"#{File.join(File.dirname(__FILE__), 'lib', 'screenshotTaker.jar')}\" #{serial} \"#{path}\"" log screenshot_cmd raise "Could not take screenshot" unless system(screenshot_cmd) end @@screenshot_count += 1