spec/lib/ADB_spec.rb in ADB-0.5.1 vs spec/lib/ADB_spec.rb in ADB-0.5.2
- old
+ new
@@ -131,9 +131,15 @@
ADB.should_receive(:last_stdout).and_return("Success")
should_call_adb_with('wait-for-device', 'install', 'Test.apk')
ADB.install 'Test.apk'
end
+ it "should be able to install an application with spaces in the path" do
+ ADB.should_receive(:last_stdout).and_return("Success")
+ should_call_adb_with('wait-for-device', 'install', 'Test Path With Spaces.apk')
+ ADB.install 'Test Path With Spaces.apk'
+ end
+
it "should install to the only connected device" do
ADB.should_receive(:last_stdout).and_return("Success")
should_call_adb_with('-d', 'wait-for-device', 'install', 'Test.apk')
ADB.install 'Test.apk', nil, :device => 'blah'
end