test/zobbix_test.rb in zobbix-0.0.4 vs test/zobbix_test.rb in zobbix-0.1.0
- old
+ new
@@ -39,6 +39,16 @@
assert_raises(Zobbix::AuthenticationError) do
client.authenticate!
end
end
end
+
+ def test_params_as_array
+ VCR.use_cassette('array_params') do
+ z = zbx
+ z.authenticate!
+ response = z.request('host.delete', [10123])
+ assert_success(response)
+ pass
+ end
+ end
end