Fix up tests to use new interface

This commit is contained in:
Jeff Bonhag 2020-06-01 11:00:30 -04:00
parent 5abde797e4
commit 38e986300b
No known key found for this signature in database
GPG Key ID: 32966F3FB5AC1129

View File

@ -131,15 +131,15 @@ OUTPUT
end
it "returns the storage controllers" do
expect(subject.storage_controllers.first[:name]).to eq("SATA Controller")
expect(subject.storage_controllers.first[:type]).to eq("IntelAhci")
expect(subject.storage_controllers.first[:maxportcount]).to eq(30)
expect(subject.storage_controllers.first.name).to eq("SATA Controller")
expect(subject.storage_controllers.first.type).to eq("IntelAhci")
expect(subject.storage_controllers.first.maxportcount).to eq(30)
end
it "includes attachments for each storage controller" do
expect(subject.storage_controllers.first[:attachments])
expect(subject.storage_controllers.first.attachments)
.to include(port: "0", device: "0", uuid: "12345")
expect(subject.storage_controllers.first[:attachments])
expect(subject.storage_controllers.first.attachments)
.to include(port: "1", device: "0", uuid: "67890")
end
end