Test workdir change

This commit is contained in:
Alex Kotov 2023-10-23 18:44:14 +04:00
parent 454784f61a
commit c8d1e94456
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -62,7 +62,9 @@ REFS = {
}.freeze,
}.freeze
@stdin, @stdout, @wait_thr = Open3.popen2 EXE, chdir: __dir__
workdir = File.expand_path('test', __dir__).freeze
@stdin, @stdout, @wait_thr = Open3.popen2 EXE, workdir, chdir: __dir__
@stdin.sync = true
@stdout.sync = true
@ -94,7 +96,7 @@ end
cmd :REGISTER_SCRIPT,
{ name: :render,
vars: %i[template format notes note],
args: ['test/render.rb',
args: ['./render.rb',
{ template: nil },
{ format: nil }],
stdin: ['{',