1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/joyent/models/analytics/instrumentation_tests.rb
2014-01-21 16:24:25 +00:00

13 lines
480 B
Ruby

Shindo.tests("Fog::Joyent[:analytics] | instrumentation", %w{joyent }) do
model_tests(Fog::Joyent[:analytics].instrumentations, {:joyent_module => 'cpu', :stat => 'usage'}, true)
@analytics = Fog::Joyent[:analytics]
@instrumentation = @analytics.instrumentations.first
tests('#values') do
@values = @instrumentation.values(Time.now.utc.to_i - 600, 5)
returns(Array) { @values.class }
returns(Fog::Joyent::Analytics::Value) { @values.first.class }
end
end