summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-24 05:46:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-24 05:46:55 +0000
commit9560d2e0fb74f5c23e4919a4bccdadc7540030ca (patch)
tree9f8839a05a3558c538934ebd1018afbbe98bcd6a /test/irb
parent9b48a6aec1d9a6618474114b6e92423edd1d776e (diff)
test/irb/test_workspace.rb: fix SCRIPT_LINES__
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_workspace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/irb/test_workspace.rb b/test/irb/test_workspace.rb
index f725c55c06..c78d18a6cb 100644
--- a/test/irb/test_workspace.rb
+++ b/test/irb/test_workspace.rb
@@ -36,7 +36,7 @@ module TestIRB
with_script_lines do |script_lines|
Tempfile.create do |f|
code = "IRB::WorkSpace.new(binding)\n"
- script_lines[f.path] = code
+ script_lines[f.path] = code.split(/^/)
workspace = eval(code, binding, f.path)
assert_equal(<<~EOS, workspace.code_around_binding)