File: set-env-home.patch

package info (click to toggle)
pry 0.13.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,760 kB
  • sloc: ruby: 21,552; sh: 17; makefile: 10
file content (15 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Set ENV['HOME'] to "/tmp"
Author: Utkarsh Gupta <utkarsh@debian.org>
Forwarded: not-needed
Last-Update: 2020-06-16

--- a/spec/history_spec.rb
+++ b/spec/history_spec.rb
@@ -186,6 +186,7 @@
     it "recognizes ~ (#1262)" do
       # This is a pretty dumb way of testing this, but at least it shouldn't
       # succeed spuriously.
+      ENV['HOME'] = "/tmp"
       history = Pry::History.new(file_path: '~/test_history')
       error = Class.new(RuntimeError)