Sha256: b79faa1b4b404d55406d713962d061bede5b7086706ef1cf3a7db879568314dc
Contents?: true
Size: 910 Bytes
Versions: 16
Compression:
Stored size: 910 Bytes
Contents
require_relative "../base" describe VagrantPlugins::Parallels::Driver::PD_10 do include_context "parallels" let(:parallels_version) { "10" } 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
16 entries across 16 versions & 1 rubygems