Skip to content

Commit 9007849

Browse files
committed
Update the unit tests for the new hardware order templates
Fixes #55
1 parent 958f061 commit 9007849

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spec/BareMetalServerOrder_Package_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
end
5151

5252
it "places its :hostname attribute into the hardware template in the order" do
53-
expect(test_order.hardware_order['hardware']['hostname']).to be_nil
53+
expect(test_order.hardware_order['hardware'][0]['hostname']).to be_nil
5454
test_order.hostname = "testhostname"
55-
expect(test_order.hardware_order['hardware']['hostname']).to eq "testhostname"
55+
expect(test_order.hardware_order['hardware'][0]['hostname']).to eq "testhostname"
5656
end
5757

5858
it "places its :domain attribute into into the hardware template in the order" do
59-
expect(test_order.hardware_order['hardware']['domain']).to be_nil
59+
expect(test_order.hardware_order['hardware'][0]['domain']).to be_nil
6060
test_order.domain = "softlayer.com"
61-
expect(test_order.hardware_order['hardware']['domain']).to eq "softlayer.com"
61+
expect(test_order.hardware_order['hardware'][0]['domain']).to eq "softlayer.com"
6262
end
6363

6464
it "places config options as prices in the order" do

0 commit comments

Comments
 (0)