summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-18 04:09:48 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-18 04:09:48 +0000
commit38f137276dad459fdbacfb3acdc720eb4137cc04 (patch)
tree556bb78130a9788ee921f36b2b06e5ce0dfed323 /test/irb
parent26336dda678e9c9f64c185d5888f28c061a03eb7 (diff)
Suppress read of ~/.irbrc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_init.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/irb/test_init.rb b/test/irb/test_init.rb
index 3d6c0f3bdc..11e293ad18 100644
--- a/test/irb/test_init.rb
+++ b/test/irb/test_init.rb
@@ -7,14 +7,14 @@ module TestIRB
def test_setup_with_argv_preserves_global_argv
argv = ["foo", "bar"]
with_argv(argv) do
- IRB.setup(eval("__FILE__"), argv: [])
+ IRB.setup(eval("__FILE__"), argv: %w[-f])
assert_equal argv, ARGV
end
end
- def test_setup_with_empty_argv_does_not_change_dollar0
+ def test_setup_with_minimum_argv_does_not_change_dollar0
orig = $0.dup
- IRB.setup(eval("__FILE__"), argv: [])
+ IRB.setup(eval("__FILE__"), argv: %w[-f])
assert_equal orig, $0
end