Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
update_attrs has been deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Sep 13, 2019
1 parent 307c77c commit 8a0de4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
let(:powered_off) { "PowerOff" }

it "is available when powered on" do
vm.update_attributes(:raw_power_state => powered_on)
vm.update(:raw_power_state => powered_on)
expect(vm.current_state).to eql('on')
expect(vm.supports_reset?).to be_truthy
end

it "is not available when powered off" do
vm.update_attributes(:raw_power_state => powered_off)
vm.update(:raw_power_state => powered_off)
expect(vm.current_state).to eql('off')
expect(vm.supports_reset?).to be_falsy
expect(vm.unsupported_reason(:reset)).to eql('The VM is not powered on')
Expand Down

0 comments on commit 8a0de4c

Please sign in to comment.