summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-09 17:29:41 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-09 17:29:41 +0100
commitb963018eec171be99a2658b6ea38ba9f6cb5cb55 (patch)
tree881bcd1595f2b7d371e72cd5df4e32e10e77726e /spec
parent08c8f3085f414c669fd105e4494e2400c03146dc (diff)
downloadgitlab-shell-b963018eec171be99a2658b6ea38ba9f6cb5cb55.tar.gz
Actually use the read_timeout config option
Diffstat (limited to 'spec')
-rw-r--r--spec/gitlab_net_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb
index 3c2cea2..2d9b544 100644
--- a/spec/gitlab_net_spec.rb
+++ b/spec/gitlab_net_spec.rb
@@ -143,7 +143,7 @@ describe GitlabNet, vcr: true do
subject { gitlab_net.send :http_client_for, URI('https://localhost/') }
before do
gitlab_net.stub! :cert_store
- gitlab_net.send(:config).http_settings.stub(:[]).with('self_signed_cert') { true }
+ gitlab_net.send(:config).stub(:http_settings) { {'self_signed_cert' => true} }
end
its(:verify_mode) { should eq(OpenSSL::SSL::VERIFY_NONE) }