spec/resource_spec.rb in vmware-vra-1.5.0 vs spec/resource_spec.rb in vmware-vra-1.5.1
- old
+ new
@@ -243,9 +243,14 @@
it 'returns true if the machine_status is TurningOn' do
allow(resource).to receive(:machine_status).and_return('TurningOn')
expect(resource.machine_turning_on?).to eq(true)
end
+ it 'returns true if the machine_status is MachineActivated' do
+ allow(resource).to receive(:machine_status).and_return('MachineActivated')
+ expect(resource.machine_turning_on?).to eq(true)
+ end
+
it 'returns false if the machine_status is not TurningOn' do
allow(resource).to receive(:machine_status).and_return('On')
expect(resource.machine_turning_on?).to eq(false)
end
end