spec/localhost.rb in zabbixapi-0.5.0b4 vs spec/localhost.rb in zabbixapi-0.5.0b5
- old
+ new
@@ -49,9 +49,13 @@
it "HOSTGROUP: Create or get" do
zbx.hostgroups.get_or_create(:name => hostgroup).should be_kind_of(Integer)
end
+ it "HOSTGROUP: Create or update" do
+ zbx.hostgroups.create_or_update(:name => hostgroup).should be_kind_of(Integer)
+ end
+
it "HOSTGROUP: Get all" do
zbx.hostgroups.all.should be_kind_of(Hash)
end
it "TEMPLATE: Create" do