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

Commit

Permalink
Merge pull request #135 from d-m-u/update_attrs
Browse files Browse the repository at this point in the history
update_attrs has been deprecated
  • Loading branch information
agrare committed Sep 13, 2019
2 parents 307c77c + 8a0de4c commit edb30c8
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 edb30c8

Please sign in to comment.