Sha256: 6e3631a271f528e65001139a9d4e5f60a2555d298a710eb4d65282d930e7e293
Contents?: true
Size: 873 Bytes
Versions: 3
Compression:
Stored size: 873 Bytes
Contents
require_relative "../base" describe VagrantPlugins::Parallels::Driver::PD_9 do include_context "parallels" subject { VagrantPlugins::Parallels::Driver::Meta.new(uuid) } it_behaves_like "parallels desktop driver" describe "set_power_consumption_mode" do it "turns 'longer-battery-life' on" do subprocess.should_receive(:execute). with("prlctl", "set", uuid, "--longer-battery-life", "on", an_instance_of(Hash)). and_return(subprocess_result(exit_code: 0)) subject.set_power_consumption_mode(true) end it "turns 'longer-battery-life' off" do subprocess.should_receive(:execute). with("prlctl", "set", uuid, "--longer-battery-life", "off", an_instance_of(Hash)). and_return(subprocess_result(exit_code: 0)) subject.set_power_consumption_mode(false) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-parallels-1.4.2 | test/unit/driver/pd_9_test.rb |
vagrant-parallels-1.4.1 | test/unit/driver/pd_9_test.rb |
vagrant-parallels-1.4.0 | test/unit/driver/pd_9_test.rb |