ACK

----- Original Message -----
From: [email protected]
To: [email protected]
Sent: Tuesday, August 17, 2010 12:17:17 PM GMT +01:00 Amsterdam / Berlin / Bern 
/ Rome / Stockholm / Vienna
Subject: [deltacloud-devel] [PATCH aggregator 2/2] Rspec test that HW profile 
property 'kind' attribute is saved as string

From: Jan Provaznik <[email protected]>

---
 src/spec/models/hardware_profile_spec.rb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/spec/models/hardware_profile_spec.rb 
b/src/spec/models/hardware_profile_spec.rb
index 8aa6557..bf806e3 100644
--- a/src/spec/models/hardware_profile_spec.rb
+++ b/src/spec/models/hardware_profile_spec.rb
@@ -80,4 +80,9 @@ describe HardwareProfile do
     @hp.should be_valid
   end
 
+  it "should have 'kind' attribute of hardware profile property set to string 
(not symbol)" do
+    api_prop = mock('DeltaCloud::HWP::FloatProperty', :unit => 'MB', :name => 
'memory', :kind => :fixed, :value => 12288.0)
+    @hp.memory [email protected]_property(api_prop)
+    @hp.memory.kind.should equal(@hp.memory.kind.to_s)
+  end
 end
-- 
1.7.0.1

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to