features/step_definitions/adb_steps.rb in ADB-0.5.2 vs features/step_definitions/adb_steps.rb in ADB-0.5.3
- old
+ new
@@ -70,13 +70,14 @@
#TODO: how to assert?
#last_stdout.should include 'remount succeeded'
end
Then /^I should be able to push a file to the local device$/ do
- # confirm that the file doesn't already exist
+ # be sure that the file doesn't already exist
sn = devices[0]
wait_for_device({:serial => sn}, 60)
remount({:serial => sn})
+ shell('rm /system/cuke_test_file.txt', {:serial => sn})
shell('ls /system/cuke_test_file.txt', {:serial => sn})
last_stdout.should include 'No such file or directory'
# create the temp file
File.open('cuke_test_file.txt', 'w'){ |f| f.write('Temporary file for adb testing. If found, please delete.') }