tests/requests/monitoring/metric_descriptor_tests.rb in fog-google-0.1.3 vs tests/requests/monitoring/metric_descriptor_tests.rb in fog-google-0.2.0
- old
+ new
@@ -1,25 +1,22 @@
-Shindo.tests('Fog::Google[:monitoring] | metric_descriptor requests', ['google']) do
+Shindo.tests("Fog::Google[:monitoring] | metric_descriptor requests", ["google"]) do
@monitoring = Fog::Google[:monitoring]
@get_metric_descriptor_format = {
- 'name' => String,
- 'description' => String,
- 'labels' => Array,
- 'project' => String,
- 'typeDescriptor' => Hash,
+ "name" => String,
+ "description" => String,
+ "labels" => Array,
+ "project" => String,
+ "typeDescriptor" => Hash
}
@list_metric_descriptors_format = {
- 'kind' => String,
- 'metrics' => [@get_metric_descriptor_format],
+ "kind" => String,
+ "metrics" => [@get_metric_descriptor_format]
}
- tests('success') do
-
+ tests("success") do
tests('#list_metric_descriptors').formats(@list_metric_descriptors_format) do
@monitoring.list_metric_descriptors.body
end
-
end
-
end