spec/client_spec.rb in istat-0.0.1 vs spec/client_spec.rb in istat-0.0.2
- old
+ new
@@ -45,6 +45,15 @@
response.load?.should be_true
response.uptime?.should be_true
response.disks?.should be_true
end
end
+
+ it "if ask data for two different time spans i should get different result set sizes" do
+ @client.start do |session|
+ response = session.fetch_all
+ result = response.cpu.size
+ response = session.fetch
+ response.cpu.size.should < result
+ end
+ end
end