Sha256: 8412fc529ffa1b7df0052b932a19845aee484a40a8895a414bb8861929d57770
Contents?: true
Size: 910 Bytes
Versions: 6
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
6 entries across 6 versions & 1 rubygems