From 8a0de4c3e966a8001a59e773d69cc39c8c0ba251 Mon Sep 17 00:00:00 2001 From: d-m-u Date: Fri, 13 Sep 2019 14:11:16 -0400 Subject: [PATCH] update_attrs has been deprecated --- .../manageiq/providers/microsoft/infra_manager/vm_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/manageiq/providers/microsoft/infra_manager/vm_spec.rb b/spec/models/manageiq/providers/microsoft/infra_manager/vm_spec.rb index b42aea7..e254421 100644 --- a/spec/models/manageiq/providers/microsoft/infra_manager/vm_spec.rb +++ b/spec/models/manageiq/providers/microsoft/infra_manager/vm_spec.rb @@ -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')