test/common.rb in fastly-1.00 vs test/common.rb in fastly-1.01
- old
+ new
@@ -137,12 +137,15 @@
assert_equal name, service.name
tmp = @fastly.get_service(service.id)
assert tmp
assert_equal name, tmp.name
- stats = service.stats
- assert stats
-
+ begin
+ stats = service.stats
+ rescue Fastly::Error => e
+ end
+ assert stats.nil?
+
stats = service.stats(:all, :year => 2011, :month => 10)
assert stats
end
def test_invoices
\ No newline at end of file