From 68cc0f7d51b983c007e4aad63705e535530e1bd3 Mon Sep 17 00:00:00 2001 From: Zack Hobson Date: Sun, 22 Dec 2013 20:27:59 -0800 Subject: fix throttling and malformed json --- test/app_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/app_test.rb') diff --git a/test/app_test.rb b/test/app_test.rb index 19678fd..1fc1073 100644 --- a/test/app_test.rb +++ b/test/app_test.rb @@ -23,7 +23,7 @@ class AppTest < HCl::TestCase app = HCl::App.new throttled = states('throttled').starts_as(false) app.expects(:show). - raises(HCl::HarvestMiddleware::ThrottleFailure, {headers:{'Retry-After' => 42}}). + raises(HCl::HarvestMiddleware::ThrottleFailure, {response_headers:{'retry-after' => 42}}). then(throttled.is(true)) app.expects(:sleep).with(47).when(throttled.is(true)) app.expects(:show).when(throttled.is(true)) -- cgit v1.2.3