test/calendlyr/resource_test.rb in calendlyr-0.7.4 vs test/calendlyr/resource_test.rb in calendlyr-0.7.5
- old
+ new
@@ -18,6 +18,14 @@
assert_raises Calendlyr::PaymentRequired do
client.me
end
end
+
+ def test_handle_response_too_many_requests
+ stub(path: "users/me", response: {body: "", status: 429})
+
+ assert_raises Calendlyr::TooManyRequests do
+ client.me
+ end
+ end
end