Sha256: b2de9ea589c19b8518947869abff6d1acf8d8908a4823706b5e3a71ccd9e4876
Contents?: true
Size: 679 Bytes
Versions: 23
Compression:
Stored size: 679 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. class SSLTest < Minitest::Test include MultiverseHelpers def setup # Similar to how jruby 1.6.8 behaves when jruby-openssl isn't installed Net::HTTPSession.any_instance.stubs('use_ssl=').with(true).raises(LoadError) Net::HTTPSession.any_instance.stubs('use_ssl=').with(false).returns(nil) end def test_agent_shuts_down_when_ssl_is_on_but_unavailable NewRelic::Agent.agent.expects(:shutdown).at_least_once NewRelic::Agent.expects(:finish_setup).never run_agent(:ssl => true) end end
Version data entries
23 entries across 23 versions & 2 rubygems