spec/metadata_spec.rb in kaltura_fu-0.2.0 vs spec/metadata_spec.rb in kaltura_fu-0.2.1
- old
+ new
@@ -266,6 +266,18 @@
if cat.name =~/^(waffles|pirates|peanuts)(.*)/
KalturaFu.client.category_service.delete(cat.id)
end
end
end
+
+ it "should let you set multiple fields at once with set()" do
+ test = MetadataSpecTester.new
+
+ name = "Mr Peanut's wild ride"
+ description = "Man this is a random name"
+ waffles = "Man waffles isn't an attribute"
+ test.set(@entry_id,:name=>name,:description=>description,:waffles=>waffles)
+
+ test.get_name(@entry_id).should == name
+ test.get_description(@entry_id).should == description
+ end
end
\ No newline at end of file