summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-12-22 00:18:21 +0100
committerSamuel Giddins <segiddins@segiddins.me>2016-12-22 00:18:36 +0100
commit4a6615a027fd17c6fbf7155345a7a77e040f7abc (patch)
treedb9873e8a19370d589220e33461a2df8b18080b5
parentac133e3e15b05cec170fa4971d5af30781090508 (diff)
downloadbundler-seg-spec-improvements.tar.gz
Define the artifice module in fail.rbseg-spec-improvements
This is so persistent will use our override class
-rw-r--r--spec/support/artifice/fail.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/artifice/fail.rb b/spec/support/artifice/fail.rb
index 572fa5613e..1059c6df4e 100644
--- a/spec/support/artifice/fail.rb
+++ b/spec/support/artifice/fail.rb
@@ -9,6 +9,8 @@ end
# We can't use artifice here because it uses rack
+module Artifice; end # for < 2.0, Net::HTTP::Persistent::SSLReuse
+
class Fail < Net::HTTP
# Net::HTTP uses a @newimpl instance variable to decide whether
# to use a legacy implementation. Since we are subclassing