We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e6545 commit 315ecafCopy full SHA for 315ecaf
test/console/irb_test.rb
@@ -6,11 +6,20 @@ module DEBUGGER__
6
class IrbTest < ConsoleTestCase
7
def setup
8
@original_pager = ENV["PAGER"]
9
+ @original_home = ENV["HOME"]
10
+ @original_xdg_config_home = ENV["XDG_CONFIG_HOME"]
11
+ @original_irbrc = ENV["IRBRC"]
12
+
13
ENV["PAGER"] = "cat"
14
+ ENV["HOME"] = ENV["XDG_CONFIG_HOME"] = Dir.mktmpdir
15
+ ENV["IRBRC"] = nil
16
end
17
18
def teardown
19
ENV["PAGER"] = @original_pager
20
+ ENV["HOME"] = @original_home
21
+ ENV["XDG_CONFIG_HOME"] = @original_xdg_config_home
22
+ ENV["IRBRC"] = @original_irbrc
23
24
25
def program
0 commit comments