mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
9b48a6aec1
commit
9560d2e0fb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue