diff options
| author | Zack Hobson | 2013-12-22 20:27:59 -0800 |
|---|---|---|
| committer | Zack Hobson | 2013-12-22 20:27:59 -0800 |
| commit | 68cc0f7d51b983c007e4aad63705e535530e1bd3 (patch) | |
| tree | 65dc88011555f7726df2521eded08ef945ad8070 /test | |
| parent | f22aaeb06d26a59012f6e2b23ee9d480379c003f (diff) | |
| download | hcl-68cc0f7d51b983c007e4aad63705e535530e1bd3.tar.bz2 | |
fix throttling and malformed json
Diffstat (limited to 'test')
| -rw-r--r-- | test/app_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
