diff options
| author | Zack Hobson | 2014-04-21 12:56:40 -0700 | 
|---|---|---|
| committer | Zack Hobson | 2014-04-21 13:06:14 -0700 | 
| commit | 3bc51e96c7a88dfdf8d003c669d4af33d92ab90c (patch) | |
| tree | 8f996ddf2773482e3d0cddcbabcb77ab15819009 /test/app_test.rb | |
| parent | 92974b1fa9d8a975a8583eba967a346de1e20781 (diff) | |
| download | hcl-3bc51e96c7a88dfdf8d003c669d4af33d92ab90c.tar.bz2 | |
remove dependency on fakeweb and net::http
By using pure faraday for the test and error handling code,
the way is cleared for dropping in alternative http clients.
Diffstat (limited to 'test/app_test.rb')
| -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 de10989..4c997d7 100644 --- a/test/app_test.rb +++ b/test/app_test.rb @@ -40,7 +40,7 @@ class AppTest < HCl::TestCase    def test_socket_error      app = HCl::App.new -    app.expects(:show).raises(SocketError) +    app.expects(:show).raises(Faraday::Error)      app.expects(:exit).with(1)      app.process_args('show').run      assert_match /connection failed/i, error_output | 
