diff --git a/spec/requests/api/v1/devices_controller_spec.rb b/spec/requests/api/v1/devices_controller_spec.rb index 59d4f6e1..18fac9e3 100644 --- a/spec/requests/api/v1/devices_controller_spec.rb +++ b/spec/requests/api/v1/devices_controller_spec.rb @@ -334,7 +334,7 @@ def send_request expect(parsed_device["name"]).to eq attributes[:device][:name] expect(parsed_device["status"]).to eq attributes[:device][:status] expect(parsed_device["cost"]).to eq "#{'%.2f' % attributes[:device][:cost]}" - parsed_details = parsed_device # ['details'] after revertion of 6b8d3e9 + parsed_details = parsed_device['details'] expect(parsed_details["mtu"]).to eq attributes[:device][:details][:mtu] end end @@ -381,7 +381,7 @@ def send_request parsed_device = JSON.parse(response.body) expect(parsed_device["name"]).to eq attributes[:device][:name] expect(parsed_device["status"]).to eq attributes[:device][:status] - parsed_details = parsed_device # ['details'] after revertion of 6b8d3e9 + parsed_details = parsed_device['details'] expect(parsed_details["bootable"]).to eq attributes[:device][:details][:bootable] end end diff --git a/spec/requests/api/v1/nodes_controller_spec.rb b/spec/requests/api/v1/nodes_controller_spec.rb index b60d014e..589d9c86 100644 --- a/spec/requests/api/v1/nodes_controller_spec.rb +++ b/spec/requests/api/v1/nodes_controller_spec.rb @@ -186,7 +186,7 @@ def send_request expect(parsed_device["template"]["id"]).to eq valid_attributes[:template_id] expect(parsed_device["cost"]).to eq "#{'%.2f' % valid_attributes[:device][:cost]}" - parsed_details = parsed_device #["details"] + parsed_details = parsed_device["details"] expect(parsed_details["mtu"]).to eq valid_attributes[:device][:details][:mtu] expect(parsed_details["dns_domain"]).to eq valid_attributes[:device][:details][:dns_domain] end @@ -246,7 +246,7 @@ def send_request expect(parsed_device["template"]["id"]).to eq valid_attributes[:template_id] expect(parsed_device["cost"]).to eq "#{'%.2f' % valid_attributes[:device][:cost]}" - parsed_details = parsed_device #["details"] + parsed_details = parsed_device["details"] expect(parsed_details["bootable"]).to eq valid_attributes[:device][:details][:bootable] expect(parsed_details["size"]).to eq valid_attributes[:device][:details][:size] end